我的textview显示在模拟器顶部..如何更改为底部...
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/tv">
<TextView
android:text="EmbDes Technologies"
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="#ff000000"
android:textStyle="bold"
android:gravity="bottom"/>
<Gallery xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/videoGrdVw"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
</RelativeLayout>
最佳答案
虽然你的问题看起来很晦涩,但我的理解是你想将它对齐到底部。以下是您可以如何做到的:
将以下属性添加到您的 TextView :
android:gravity="底部"
希望这有帮助。如果是,请将其标记为已回答并投票。
问候。
关于java - 如何在底部设置textview,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4324099/