- <ImageButton
- android:id="@+id/button1"
- android:layout_width="100dip"
- android:layout_height="wrap_content"
- android:background="@android:color/white"
- android:layout_weight="1"
- android:adjustViewBounds="true"
- android:src="@drawable/nav1"
- android:scaleType="fitXY"/>
이미지에 맞게 사이즈를 자동 조절 시켜준다.
android:adjustViewBounds="true"
android:scaleType="fitXY"
'DEVELOPMENT > ANDROID' 카테고리의 다른 글
[android] LinearLayout (0) | 2014.03.12 |
---|---|
[android] 그래픽 레이아웃 문제 (1) | 2014.03.09 |
[android] 커스텀 다이얼로그 만들기 (0) | 2014.03.04 |
[android] Intent 예문 모음 (0) | 2014.03.04 |
[android] NFC Tag Data 만들기 (0) | 2014.03.04 |