XML里怎么把控件置于屏幕最下。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ViewTitle="http://schemas.android.com/apk/res/com.android.task"
xmlns:XXXX="http://schemas.android.com/apk/res/com.android.task"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="aaaaa"
android:textColor="#FFFFFF"
android:textSize="10dip"
android:gravity="bottom"
></TextView>
</LinearLayout>请问这样可以吗,啊?是否通过gravity设置,还是通过其他的设置。请指点一下。谢!
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ViewTitle="http://schemas.android.com/apk/res/com.android.task"
xmlns:XXXX="http://schemas.android.com/apk/res/com.android.task"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="aaaaa"
android:textColor="#FFFFFF"
android:textSize="10dip"
android:gravity="bottom"
></TextView>
</LinearLayout>请问这样可以吗,啊?是否通过gravity设置,还是通过其他的设置。请指点一下。谢!
放到LinearLayout里面就行了!