Note that there are some explanatory texts on larger screens.

plurals
  1. POLayout align checkbox and date textview right in table layout?
    text
    copied!<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:paddingTop="4dip" android:paddingBottom="6dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"&gt; &lt;TableLayout android:layout_width="fill_parent" android:layout_height="wrap_content"&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="20dp" &gt; &lt;TextView android:id="@+id/text_sender" android:textStyle="bold" android:textColor="#ffffff" android:focusable="false" android:layout_width="0dp" android:layout_height="20dp" android:layout_weight=".75" /&gt; &lt;TextView android:id="@+id/text_date" android:text="date" android:layout_width="0dp" android:layout_gravity="right" android:layout_weight=".25" android:focusable="false" android:layout_height="20dp" /&gt; &lt;/TableRow&gt; &lt;TableRow android:layout_width="fill_parent" android:layout_height="35dp" android:gravity="top"&gt; &lt;TextView android:id="@+id/text_msg" android:layout_width="0dp" android:layout_weight=".75" android:layout_height="35dp" android:focusable="false" /&gt; &lt;CheckBox android:layout_width="0dp" android:id="@+id/ck_msg" android:layout_weight=".25" android:checked="false" android:layout_height="35dp" android:focusable="false" android:layout_gravity="right" /&gt; &lt;/TableRow&gt; &lt;/TableLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p>i want to aligh both of them to extream right</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