0
我有布局:为什么片段超过textView?
<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"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/frag1"
class="com.luheb.cars.LastListFragment"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
tools:layout="@layout/frag1" />
<TextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="test"
android:layout_alignParentBottom="true" />
</RelativeLayout>
在片段我有ListView
,如果我在TextView
单击然后的onclick从ListView
呼吁。
我想TextView
有底部和fragment
与ListView
应该从顶部到TextView
。现在fragment
是自上而下和TextView
是粘底...
尝试增加属性'layout_below'您的TextView。 –
与layout_below我没有看到我的TextView ... – luheb