<
RelativeLayout
xmlns:android
=
"http://schemas.android.com/apk/res/android"
xmlns:tools
=
"http://schemas.android.com/tools"
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
tools:context
=
"com.example.imageview.ImageTranslateActivity"
>
<
LinearLayout
android:id
=
"@+id/linView"
android:layout_width
=
"fill_parent"
android:layout_height
=
"fill_parent"
android:layout_alignParentTop
=
"true"
android:orientation
=
"vertical"
>
<
TextView
android:layout_width
=
"fill_parent"
android:layout_height
=
"wrap_content"
android:background
=
"#3F0099"
android:gravity
=
"center"
android:paddingBottom
=
"@dimen/abc_action_bar_icon_vertical_padding"
android:paddingTop
=
"@dimen/abc_action_bar_icon_vertical_padding"
android:text
=
"Scale 구현하는 방법"
android:textColor
=
"#FFFFFF"
/>
<
LinearLayout
android:layout_width
=
"fill_parent"
android:layout_height
=
"fill_parent"
android:orientation
=
"horizontal"
>
<
Button
android:id
=
"@+id/btn_right"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:layout_weight
=
"1"
android:text
=
"이미지키우기"
/>
<
Button
android:id
=
"@+id/btn_left"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:layout_weight
=
"1"
android:text
=
"서서히사라짐"
/>
<
Button
android:id
=
"@+id/btn_alpha"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:layout_weight
=
"1"
android:text
=
"이미지줄이면서"
/>
<
Button
android:id
=
"@+id/btn_twit"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:layout_weight
=
"1"
android:text
=
"돌면서사라짐"
/>
</
LinearLayout
>
</
LinearLayout
>
<
ImageView
android:id
=
"@+id/imgTranslate"
android:layout_width
=
"500px"
android:layout_height
=
"500px"
android:layout_centerInParent
=
"true"
android:src
=
"@drawable/diablo"
/>
</
RelativeLayout
>