Note that there are some explanatory texts on larger screens.

plurals
  1. POListing items in right
    primarykey
    data
    text
    <p>I've list_item.xml file which lists items on left,I've been trying to play around with gravity and layout_gravity to make these items listed on right I mean the <strong>list_item</strong>.xml , but these didn't change anything. just to mention that I have other xml files: item.xml, item_list.xml, and this file which is list.xml</p> <p><img src="https://i.stack.imgur.com/XiuyQ.png" alt="enter image description here"></p> <pre><code> &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:id="@+id/list_container" android:measureAllChildren="true" android:layout_width="wrap_content" android:layout_height="match_parent" android:orientation="vertical" &gt; &lt;ListView android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="wrap_content" android:drawSelectorOnTop="false" android:focusableInTouchMode="true" android:paddingBottom="10sp" /&gt; &lt;ScrollView android:id="@+id/edit_layout" android:layout_width="fill_parent" android:layout_height="fill_parent" android:visibility="gone&gt; &lt;LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingTop="5sp" android:paddingLeft="10sp" android:gravity="right" android:paddingRight="15sp" &gt; &lt;TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/list_notes_label" android:gravity="right" /&gt; &lt;!-- I have many other of text views --&gt; &lt;/LinearLayout&gt; &lt;/ScrollView&gt; &lt;com.google.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentBottom="true"&gt; &lt;/com.google.ads.AdView&gt; &lt;/RelativeLayout&gt; </code></pre> <p>item.xml</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:gravity="right" &gt; &lt;ImageView android:id="@+id/image" android:layout_width="50dp" android:layout_height="50dp" /&gt; &lt;TextView android:id="@+id/caption" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toRightOf="@id/image" android:textSize="18sp" /&gt; &lt;TextView android:id="@+id/description" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/caption" android:layout_toRightOf="@id/image" /&gt; </code></pre> <p></p> <p>list_item.xml</p> <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingTop="6dip" android:paddingBottom="6dip" android:paddingLeft="20dip" android:gravity="right"&gt; &lt;TextView android:id="@android:id/text1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceLarge" /&gt; &lt;TextView android:id="@android:id/text2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceSmall" /&gt; </code></pre> <p></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.
 

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