0
我有這樣的佈局內部的RelativeLayout
:對齊在相對佈局
<LinearLayout
android:id="@+id/llWatchItemCommentButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/myMasterCat_Item"
style="@style/DropShadowEffect"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_weight="99"
android:shadowColor="#ffffff"
android:text="Item"
android:textColor="#515b61"
android:textSize="22sp" />
<ImageView
android:id="@+id/bFollowComment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/featured_button_selector"
android:padding="5dp"
android:src="@drawable/comment" />
</LinearLayout>
<TextView
android:id="@+id/myMastCat_Cat"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/llWatchItemCommentButton"
android:layout_alignLeft="@+id/llWatchItemCommentButton"
android:layout_marginLeft="10dp"
android:text="MasterCat"
android:textColor="#666"
android:textSize="16sp" />
本質上,如果在佈局TextView
變爲兩行,其將與TextView positioned below the
LinearLayout`重疊。
是否有一個屬性也許可以糾正?就像在中,我希望底部TextView
在任何時候都低於整個LinearLayout
,即使它開始增長。現在,這個職位似乎是固定的。