ImageView에서 전체 화면 이미지를 표시하고 있으며 ImageView 위에 화면의 중심에 TextView를 추가하려고하지만 TextView가 표시되지 않습니다. ImageView를 통해 TextView 추가 (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 –