Я пытаюсь разместить TextView
на ImageView
в нижнем центре RelativeLayout
. Я могу разместить TextView
в центре, но не смог поместить его внизу. Может ли кто-нибудь вести меня. вот мой XMLAndroid textview на imageview
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/back"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<ImageView
android:id="@+id/eventimage"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="fitXY"
android:background="#000000">
</ImageView>
<TextView
android:id="@+id/text98"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_centerVertical="true"
android:singleLine="true"
android:textColor="@color/white"
android:text="LAST"
android:textStyle="bold"
android:textSize="18sp"/>
</RelativeLayout>
добавить это для TextView 'андроида: layout_alignBottom = "@ + id/eventimage" ' – Raghunandan