Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to manually set textview padding?
    primarykey
    data
    text
    <p>This is java</p> <pre><code>maintitle = (TextView)findViewById(R.id.text_particularlatestnewstitle); maintitle.setPadding(100, 0, 0, 0); </code></pre> <p>alllatestnewslist.xml here</p> <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/layout_temp" android:layout_width="fill_parent" android:layout_height="100px" android:background="@drawable/background_news_list" &gt; &lt;ImageView android:id="@+id/image_alllatestnewstitle" android:layout_width="134px" android:layout_height="80px" android:layout_marginBottom="5px" android:layout_marginLeft="10px" android:layout_marginRight="10px" android:layout_marginTop="5px" android:scaleType="centerCrop" /&gt; &lt;LinearLayout android:id="@+id/test" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="5px" android:layout_marginLeft="100px" android:layout_marginRight="10px" android:layout_marginTop="5px" android:orientation="vertical" &gt; &lt;TextView android:id="@+id/text_particularlatestnewstitle" android:layout_width="fill_parent" android:layout_height="wrap_content" android:textColor="#000000" android:textSize="25px" /&gt; &lt;RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="25px" &gt; &lt;TextView android:id="@+id/text_newsdate" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textColor="#999999" android:textSize="15px" /&gt; &lt;TextView android:id="@+id/text_newscategorytitle" android:layout_width="50px" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_gravity="right" android:gravity="right" android:textColor="#ff0000" android:textSize="15px" /&gt; &lt;/RelativeLayout&gt; &lt;/LinearLayout&gt; </code></pre> <p></p> <p>In this xml, i have others object like image view and textview so on.</p> <p>I set like this but it does not move 100 away from left........................</p> <p>Any other way???????????????????????</p>
    singulars
    1. This table or related slice is empty.
    plurals
    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