Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid: Evernote style layout
    text
    copied!<p>I have a layout for the main screen in an app, which I would like to have an evernote style. So far, my code is this:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="center_vertical|center_horizontal" android:orientation="vertical" &gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="bottom|left" android:orientation="horizontal" &gt; &lt;ImageButton android:id="@+id/btn1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/button" /&gt; &lt;ImageButton android:id="@+id/btn2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/button" /&gt; &lt;/LinearLayout&gt; &lt;LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_gravity="bottom|center" android:orientation="horizontal" &gt; &lt;ImageButton android:id="@+id/btn3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/button" /&gt; &lt;ImageButton android:id="@+id/btn4" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/button" /&gt; &lt;/LinearLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>This is how it looks like:</p> <p><img src="https://i.stack.imgur.com/bRXe2.png" alt="enter image description here"></p> <p>And this is how I'd like it to look like:</p> <p><img src="https://i.stack.imgur.com/gAAo9.png" alt="enter image description here"></p> <p>How could I achieve this? Grouping the buttons like this?</p> <p>Thanks a lot in advance!</p>
 

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