이미지 1을 이미지 2와 유사하게 만들기 위해 레이아웃을 어떻게 바꿀 수 있습니까? 위로 움직이는 텍스트이거나 위로 움직이는 이미지라면 괜찮습니다.Android ImageView 레이아웃 맞춤
내 레이아웃 파일과 같이이다 : -
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:weightSum="1"
android:orientation="horizontal" >
<LinearLayout
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="0.6"
android:orientation="vertical" >
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/imp" />
</LinearLayout>
<LinearLayout
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="0.4"
android:orientation="vertical" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/stats_chr" />
<TextView
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="right|center_vertical"
android:singleLine="true"
android:text="AA" />
</LinearLayout>
'LinearLayout'과'ImageView'에 모두 중력을 설정하려고합니다. android : layout_gravity = "top"' –
Dungeon crawling cat! –