【发布时间】:2011-06-10 15:19:11
【问题描述】:
如果在滚动视图中我有一个包含两个文本视图的相对布局,并且其中一个文本视图具有属性 android:layout_alignParentBottom="true"。可以在屏幕底部对齐这个textview吗?
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="blabla"/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:text="blabla2"/>
</RelativeLayout>
</ScrollView>
【问题讨论】:
标签: android scrollview android-relativelayout