我想要的圖像放置到我的列表極右和按 http://developer.android.com/reference/android/widget/LinearLayout.html#attr_android:gravity 我試圖做字符串類型不允許(在「重力」,值爲「結束」)
<ImageView
android:id="@+id/list_now_playing"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="end"
>
</ImageView>
,但我出現以上錯誤。 請建議解決方案
您正在使用哪個Android版本? – MKJParekh 2012-01-04 11:28:23
使用FILL_PARENT您的TextView或layout_weight = 1 – 2012-01-04 11:46:05