title: EditText Padding not Working as Expected in Android
body: <p>I have test on <code>MarshMallow</code> device. When I write xml for <code>EditText</code> and set <code>PaddingBottom</code> to <code>Retype EditText</code>. but it is not Working. But When I set <code>PaddingLeft</code> to <code>New PassWord</code> <code>EditText</code> is working fine.</p>
  <h1>Approch : 1</h1>
  <p><strong>xml Code :</strong></p>
  <pre><code> &lt;EditText
              android:id=&quot;@+id/change_password_old_password_edittext&quot;
              android:layout_below=&quot;@+id/change_password_mobileNumber_text&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:hint=&quot;Old Password&quot;
              android:layout_marginTop=&quot;20.0dip&quot;
              android:textColorHint=&quot;#40000000&quot;
              android:textSize=&quot;@dimen/textsize16&quot;/&gt;
  
          &lt;EditText
              android:id=&quot;@+id/change_password_new_password_edittext&quot;
              android:layout_below=&quot;@+id/change_password_old_password_edittext&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:hint=&quot;New Password&quot;
              android:layout_marginTop=&quot;20.0dip&quot;
              android:textColorHint=&quot;#40000000&quot;
              android:paddingLeft=&quot;10dip&quot;
              android:textSize=&quot;@dimen/textsize16&quot;/&gt;
  
          &lt;EditText
              android:id=&quot;@+id/change_password_retype_password_edittext&quot;
              android:layout_below=&quot;@+id/change_password_new_password_edittext&quot;
              android:layout_width=&quot;match_parent&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:hint=&quot;Retype Password&quot;
              android:layout_marginTop=&quot;20.0dip&quot;
              android:paddingBottom=&quot;10dip&quot;
              android:textColorHint=&quot;#40000000&quot;
              android:textSize=&quot;@dimen/textsize16&quot;/&gt;
  </code></pre>
  <p><strong>ScreenShot :</strong></p>
  <p><a href="https://i.stack.imgur.com/xTuya.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xTuya.png" alt="enter image description here" /></a></p>
  <h1>Approch : 2</h1>
  <p>Then I decide to set <code>PaddingBottom</code> programatically. But It is giving weird Output.</p>
  <p><strong>java code :</strong></p>
  <p>inside <code>OnCreate</code> method</p>
  <pre><code>   EditText change_password_retype_password_edittext = (EditText)findViewById(R.id.change_password_retype_password_edittext);
          change_password_retype_password_edittext.setPadding(0,0,0,10);
  </code></pre>
  <p><strong>Output :</strong></p>
  <p><a href="https://i.stack.imgur.com/dV3Ok.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dV3Ok.png" alt="enter image description here" /></a></p>
  <blockquote>
  <p><strong>Note :</strong>  I have tested on <code>Marshmallow</code> , <code>LolliPop</code> and also <code>Jellybean</code>. But in all device is not Working.</p>
  </blockquote>