Note that there are some explanatory texts on larger screens.

plurals
  1. POtry to display seven buttons with scrollview in a small screen
    primarykey
    data
    text
    <p>I'm trying to put in my layout seven buttons in a small screen to test it (<strong>Galaxy young</strong>), So I used <strong>the scrollview</strong> but I still have problems (<strong>the screen doesn't scroll in LandScape mode</strong> ).</p> <p>this is my xml code:</p> <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_weight="1" android:fillViewport="true"&gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:gravity="center_horizontal" android:orientation="horizontal" &gt; &lt;LinearLayout android:id="@+id/linearLayout1" android:layout_width="match_parent" android:layout_height="?android:attr/listPreferredItemHeight" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:gravity="center_horizontal" android:orientation="horizontal" &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;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/linearLayout2" android:layout_width="match_parent" android:layout_height="60dp" android:layout_alignParentLeft="false" android:layout_alignParentRight="false" android:layout_below="@+id/linearLayout1" android:layout_centerHorizontal="true" android:layout_marginTop="@dimen/activity_vertical_margin" &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;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/linearLayout3" android:layout_width="match_parent" android:layout_height="50dp" android:layout_below="@+id/linearLayout2" android:layout_centerHorizontal="true" android:orientation="horizontal" &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;/LinearLayout&gt; &lt;LinearLayout android:id="@+id/linearLayout4" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@+id/linearLayout3" android:layout_marginTop="@dimen/activity_vertical_margin" android:orientation="horizontal" &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;/LinearLayout&gt; &lt;LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@+id/linearLayout4" android:orientation="horizontal" &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;/LinearLayout&gt; &lt;/RelativeLayout&gt; &lt;/ScrollView&gt; </code></pre> <p><em>EDIT</em>: <strong>Portrait mode:</strong></p> <p><img src="https://i.stack.imgur.com/hGpa2.png" alt="enter image description here"></p> <p><strong>Landscape mode:</strong></p> <p><img src="https://i.stack.imgur.com/Dsc0T.png" alt="enter image description here"></p> <p>what should I use to limit this problem?</p> <p>Thank you</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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