Я показываю полноэкранное изображение в ImageView, и я пытаюсь добавить TextView в центр экрана поверх ImageView, но TextView не отображается.Добавить TextView над ImageView (Android)
я пытался:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<ImageView
android:id="@+id/splash_imageview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="centerCrop" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="20dip"
android:background="#AA000000"
android:padding="12dip"
android:text="SomeText"
android:textColor="#ffffffff" />
</LinearLayout>
использование RelativeLayout или FrameLayout вместо Linear – Suvitruf
http://stackoverflow.com/questions/19065232/placing-a-textview-on-top-of-imageview-in-android –