• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Display Image below text description

RaoulH

Newbie
Hi,
in my app, i display an image with text description. When i launch it in my phone (Wiko, Android 6.0) i noticed that in the landscape mode, the text was displayed below the image but in the portait mode, i see only the image and not the text.
If i launch my app in my tablet asus, the display of the image and the text are ok in the 2 modes (portait and landscape).
Please could you help me?
Here is the source of the xml:

HTML:
<?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:paddingLeft="16dp"
    android:paddingRight="16dp"
    android:orientation="vertical"
    android:gravity="center">

    <ImageView
        android:id="@+id/imageView"
        android:layout_width="300dp"
        android:layout_height="300dp" />

    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"

        tools:context="com.lekonquer.raoul.kmerconnect.display_offer">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceLarge"
            android:text="Large Text"
            android:id="@+id/textView4"
            android:layout_marginTop="34dp"
            android:layout_alignParentTop="true"
            android:layout_alignParentLeft="true"

            android:layout_marginStart="20dp"
            android:layout_toStartOf="@+id/textView5"
            android:layout_toLeftOf="@+id/textView5" />


        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:textAppearance="?android:attr/textAppearanceMedium"
            android:text="Medium Text"
            android:id="@+id/textView5"

            android:layout_alignParentRight="false"
            android:layout_marginLeft="20dp"
            android:layout_alignParentEnd="false"
            android:layout_alignParentStart="false" />



    </RelativeLayout>

</LinearLayout>
 
Back
Top Bottom