0
嗨,我在相對佈局中的Textview有問題。你怎麼看他們互相重疊。如果你能幫助我,我希望它。相對佈局文本視圖文本重疊
Picture:
由於事先
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingBottom="2dp"
android:paddingTop="2dp" >
<ImageView
android:id="@+id/row_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentTop="true"
android:layout_marginBottom="1dp"
android:layout_marginRight="2dp"
android:contentDescription="@string/desc" />
<ImageView
android:id="@+id/multiselect_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentTop="true"
android:layout_toRightOf="@id/row_image"
android:contentDescription="@string/desc"
android:src="@drawable/singlecheck"
android:visibility="gone" />
<TextView
android:id="@+id/top_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_toRightOf="@id/multiselect_icon"
android:dividerHeight="2sp"
android:ellipsize="end"
android:lineSpacingExtra="1sp"
android:paddingBottom="13dp"
android:paddingLeft="1dp"
android:paddingTop="13dp"
android:singleLine="true"
android:textColor="?android:attr/textColorPrimaryDisableOnly"
android:textIsSelectable="false"
android:textSize="16sp" />
<TextView
android:id="@+id/bottom_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_below="@id/top_view"
android:dividerHeight="2sp"
android:ellipsize="end"
android:gravity="right"
android:maxLength="50"
android:paddingBottom="13dp"
android:paddingLeft="1dp"
android:paddingTop="13dp"
android:singleLine="true"
android:textColor="?android:attr/textColorPrimaryDisableOnly"
android:textIsSelectable="false"
android:textSize="16sp"
android:textStyle="bold" />
</RelativeLayout>
謝謝,但我必須設置android:layout_toLeftOf =「@ + id/bottom_view」太 – df1e 2013-03-14 13:18:21
啊,可能是我錯過了。 ;) – ThaMe90 2013-03-14 13:18:38