Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid: add padding right to a bitmap
    primarykey
    data
    text
    <p>I need add padding right to my arrow bitmap There is a easy way to set this?</p> <p><img src="https://i.stack.imgur.com/zYm8A.png" alt="enter image description here"></p> <p>code:</p> <pre><code>&lt;selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; &lt;item&gt; &lt;bitmap android:src="@drawable/img_0002" android:gravity="right" /&gt; &lt;/item&gt; </code></pre> <p></p> <p>thanks!</p> <p><strong>Edit:</strong></p> <p>Layout Code:</p> <pre><code> &lt;LinearLayout style="@style/menu_container"&gt; &lt;RelativeLayout android:id="@+id/item_services" style="@style/menu_item"&gt; &lt;TextView android:id="@+id/textView2" style="@style/font_menu" android:text="@string/section_menu_services" /&gt; &lt;/RelativeLayout&gt; &lt;RelativeLayout android:id="@+id/item_social" style="@style/menu_item"&gt; &lt;TextView android:id="@+id/textView3" style="@style/font_menu" android:text="@string/section_menu_social"/&gt; &lt;/RelativeLayout&gt; </code></pre> <p>Styles:</p> <pre><code> &lt;style name="menu_container"&gt; &lt;item name="android:layout_width"&gt;fill_parent&lt;/item&gt; &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt; &lt;item name="android:layout_centerHorizontal"&gt;true&lt;/item&gt; &lt;item name="android:layout_centerVertical"&gt;true&lt;/item&gt; &lt;item name="android:background"&gt;@drawable/bg_menu_container&lt;/item&gt; &lt;item name="android:layout_marginLeft"&gt;25dp&lt;/item&gt; &lt;item name="android:layout_marginRight"&gt;25dp&lt;/item&gt; &lt;item name="android:orientation"&gt;vertical&lt;/item&gt; &lt;/style&gt; &lt;style name="menu_item"&gt; &lt;item name="android:background"&gt;@drawable/bg_menu_drawable&lt;/item&gt; &lt;item name="android:clickable"&gt;true&lt;/item&gt; &lt;item name="android:focusable"&gt;true&lt;/item&gt; &lt;item name="android:layout_marginLeft"&gt;1dp&lt;/item&gt; &lt;item name="android:layout_marginRight"&gt;1dp&lt;/item&gt; &lt;item name="android:layout_width"&gt;wrap_content&lt;/item&gt; &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt; &lt;/style&gt; </code></pre>
    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. 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