Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As I understand from your question it works in portrait but not landscape, so try this. As you rotate your device it should still scroll. I have placed this is in one Layout instead of multiple layouts.</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" &gt; &lt;ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical"&gt; &lt;Button android:id="@+id/lieu_depart" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Lieu de prise en charge" style="" /&gt; &lt;Button android:id="@+id/button2_date_depart" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="50dp" android:text="Date1" /&gt; &lt;Button android:id="@+id/time_depart5" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="70dp" android:text="Time1" /&gt; &lt;Button android:id="@+id/button4" android:layout_width="match_parent" android:layout_height="wrap_content" android:minWidth="@dimen/activity_vertical_margin" android:text="Lieu de restitution" /&gt; &lt;Button android:id="@+id/button5_date_arrive" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="50dp" android:text="Date2" /&gt; &lt;Button android:id="@+id/button6_time_arrive" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="70dp" android:text="Time2" /&gt; &lt;Button android:id="@+id/Button03" android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center" android:text="Button" /&gt; &lt;/RelativeLayout&gt; &lt;/ScrollView&gt; &lt;/RelativeLayout&gt; </code></pre> <p>EDIT...</p> <p>You need to add the "android:layout_below="@+id/your button id" at every button so that the buttons will be displayed underneath each other..</p> <pre><code> &lt;Button android:id="@+id/lieu_depart" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Lieu de prise en charge" style="" /&gt; &lt;Button android:id="@+id/button2_date_depart" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/lieu_depart" android:layout_marginLeft="50dp" android:text="Date1" /&gt; &lt;Button android:id="@+id/time_depart5" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/button2_date_depart" android:layout_marginLeft="70dp" android:text="Time1" /&gt; &lt;Button android:id="@+id/button4" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/time_depart5" android:minWidth="@dimen/activity_vertical_margin" android:text="Lieu de restitution" /&gt; &lt;Button android:id="@+id/button5_date_arrive" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/button4" android:layout_marginLeft="50dp" android:text="Date2" /&gt; &lt;Button android:id="@+id/button6_time_arrive" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="70dp" android:layout_below="@+id/button5_date_arrive" android:text="Time2" /&gt; &lt;Button android:id="@+id/Button03" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/button6_time_arrive" android:gravity="center" android:text="Button" /&gt; </code></pre> <p>You can then play with the layout of your buttons by setting the gravity and margins. This should now fix your problem you are having.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload