Display TextView over ImageView in android
问题 I want to display a text over an Image View. I do it like Alesqui suggested here: Android Text over image The preview in Android studio looks fine: But my actual result looks like this with the text unwantedly above: I have to add the following XML dynamically to a LinearLayout during the execution: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/relativelayout" android:layout_width="fill_parent" android:layout_height="fill_parent" > <ImageView