Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid layout weight / max-size / advice
    primarykey
    data
    text
    <p>After driving myself mad for the past couple of days I have seen many different pages on StackOverflow, but not the answear I was looking for :(</p> <p>I want to create a puzzle for an Android phone, or better: all android devices.</p> <ol> <li><p>Should i focus on making this app compatible with ALL android devices, including (really small) 2,7" and really large (7"+) devices? Or should I stick with an app that "looks good and works" on 3.2" till 4.7"?</p></li> <li><p>Bigger screens have more space, so the screen text can be bigger. How can I automatically have the app set the correct screen textsize? So far I have created the code below. Using <code>sp</code> for text size though it does not seem to do much.</p></li> <li><p>If you recommend me to make the app available for tablets, how can I set a max width for the buttons in the source below, but also have a minimum weight of lets say <code>90%</code>?</p> <p> </p> <p></p> <p></p> <p></p> <pre><code>&lt;Button android:id="@+id/BTN_StartGame" android:layout_width="250dp" android:layout_height="30dp" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:background="@drawable/mainbutton" android:text="@string/BTN_StartGame" android:textColor="@color/White" android:textSize="16sp" /&gt; &lt;Button android:id="@+id/BTN_Settings" android:layout_width="250dp" android:layout_height="30dp" android:layout_marginTop="50dp" android:background="@drawable/mainbutton" android:text="@string/BTN_Settings" android:textColor="@color/White" android:textSize="16sp" /&gt; &lt;Button android:id="@+id/BTN_Tutorial" android:layout_width="110dp" android:layout_height="30dp" android:layout_marginTop="100dp" android:background="@drawable/mainbutton" android:text="@string/BTN_Tutorial" android:textColor="@color/White" android:textSize="16sp" /&gt; &lt;Button android:id="@+id/BTN_Rules" android:layout_width="110dp" android:layout_height="30dp" android:layout_marginTop="100dp" android:layout_alignParentRight="true" android:background="@drawable/mainbutton" android:text="@string/BTN_Rules" android:textColor="@color/White" android:textSize="16sp" /&gt; &lt;Button android:id="@+id/BTN_About" android:layout_width="250dp" android:layout_height="30dp" android:layout_marginTop="230dp" android:background="@drawable/mainbutton" android:text="@string/BTN_About" android:textColor="@color/White" android:textSize="16sp" /&gt; </code></pre> <p> </p></li> </ol>
    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