Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can use this code:</p> <pre><code>&lt;Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:layout_marginRight="98dp" android:text="Button" /&gt; &lt;Button android:id="@+id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_toLeftOf="@+id/button1" android:text="Button" /&gt; </code></pre> <p><code>android:layout_alignParentBottom="true"</code> means that the bottom must be on the bottom. <code>android:layout_centerHorizontal="true"</code> means it should be in the center (so even space on left and right)</p> <p>for your code:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="fill_parent" android:layout_width="fill_parent" android:orientation="vertical"&gt; &lt;RadioGroup android:id="@+id/tabs" android:layout_height="wrap_content" android:layout_width="fill_parent" android:orientation="horizontal"&gt; &lt;RadioButton android:id="@+id/radio_btn_0" android:layout_height="wrap_content" android:layout_width="0px" android:layout_weight="1" android:text="Absences" android:checked="true" android:textSize="@dimen/padding_small"/&gt; &lt;RadioButton android:id="@+id/radio_btn_1" android:layout_height="wrap_content" android:layout_width="0px" android:layout_weight="1" android:text="Students" android:textSize="@dimen/padding_small" /&gt; &lt;RadioButton android:id="@+id/radio_btn_2" android:layout_height="wrap_content" android:layout_width="0px" android:layout_weight="1" android:text="Grades" android:textSize="@dimen/padding_small"/&gt; &lt;RadioButton android:id="@+id/radio_btn_3" android:layout_height="wrap_content" android:layout_width="0px" android:layout_weight="1" android:text="Tests" android:textSize="@dimen/padding_small"/&gt; &lt;/RadioGroup&gt; &lt;com.github.ysamlan.horizontalpager.HorizontalPager android:id="@+id/horizontal_pager" android:layout_width="fill_parent" android:layout_height="0px" android:layout_weight="1"&gt; &lt;DragNDrop.DragNDropListView android:id="@+id/android:list" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;/DragNDrop.DragNDropListView&gt; &lt;ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="fill_parent" android:textSize="24sp" android:text="Students menu" android:textColor="#000" android:textStyle="bold" android:background="#0f0" /&gt; &lt;/ScrollView&gt; &lt;ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="fill_parent" android:textSize="24sp" android:text="Grades menu" android:textColor="#000" android:textStyle="bold" android:background="#00f" /&gt; &lt;/ScrollView&gt; &lt;ScrollView android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="fill_parent" android:textSize="24sp" android:text="Tests" android:textColor="#000" android:textStyle="bold" android:background="#0f0" /&gt; &lt;/ScrollView&gt; &lt;/com.github.ysamlan.horizontalpager.HorizontalPager&gt; &lt;Button android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:drawableLeft="@drawable/r" android:drawablePadding="@dimen/padding_small" android:text="Refresh" android:textSize="@dimen/a12" /&gt; &lt;Button android:id="@+id/btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentRight="true" android:drawableLeft="@drawable/back" android:drawablePadding="@dimen/padding_small" android:text="Return" android:textSize="@dimen/a12" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p>I changed <code>android:layout_centerHorizontal="true"</code> instead of that 19dp thing. And made it a relativelayout</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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