package com.commonsware.android.basic;

import android.app.Activity;
import android.os.Bundle;

public class ImageViewDemo extends Activity {
  
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <!--  adjustViewBounds 종횡비율 맞춰서 크기 줄이기     -->
    <ImageView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:adjustViewBounds="true"
        android:src="@drawable/ff" />

</LinearLayout>



'Android > 기본' 카테고리의 다른 글

Android Check Box  (0) 2012.04.28
Android 필드 박스  (0) 2012.04.28
Android 간단한 이벤트3  (0) 2012.04.28
Android 간단한 이벤트2  (0) 2012.04.28
Android 간단한 이벤트  (0) 2012.04.28

+ Recent posts