Note that there are some explanatory texts on larger screens.

plurals
  1. POScroll not display at right in TextView
    primarykey
    data
    text
    <p>I have a Textview in xml in which I define Scrollbar, I also set padding and Background in TextView, But problem is that scrollbar is not displaying at right side, if we have paddingRight = 20dp then scroll display 20dp left from right edge.</p> <p>for other controls like listview it always display at right</p> <p><img src="https://i.stack.imgur.com/mflTA.png" alt="enter image description here"></p> <p>need solution for setting padding and scroll display at right side</p> <p><strong>Edited:</strong></p> <p>xml file: </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_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" &gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/main_bg" android:orientation="vertical" &gt; &lt;LinearLayout android:id="@+id/dialog_lay" android:layout_width="fill_parent" android:layout_height="70dp" android:layout_marginBottom="20dp" android:layout_marginTop="22dp" &gt; &lt;TextView android:id="@+id/dialog" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginLeft="15dp" android:layout_marginRight="15dp" android:layout_weight="1" android:background="@drawable/dialog" android:gravity="center_vertical" android:maxLines="100" android:paddingBottom="5dp" android:paddingLeft="10dp" android:paddingRight="10dp" android:paddingTop="5dp" android:scrollbars="vertical" android:text="@string/dialog_text" android:textColor="@color/text_color" android:textSize="15sp" /&gt; &lt;/LinearLayout&gt; &lt;/RelativeLayout&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