android - how can I set the margin of a EditText using xml? -


hi have created layout using following code

         android:layout_height="wrap_content"></textview>         <edittext android:layout_height="wrap_content"         android:padding="12dip"  android:layout_width="wrap_content" android:text="edittext" android:id="@+id/edittext1"></edittext>     </tablerow> </tablelayout> <tablerow android:layout_width="match_parent" android:id="@+id/tablerow2" android:layout_height="wrap_content">     <textview android:text="textview" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/textview2"></textview>     <edittext android:text="edittext" android:id="@+id/edittext2" android:layout_width="wrap_content" android:layout_height="wrap_content"></edittext> </tablerow> <tablerow android:layout_width="match_parent" android:id="@+id/tablerow3" android:layout_height="wrap_content">     <button android:text="button" android:id="@+id/button1" android:layout_width="wrap_content" android:layout_height="wrap_content"></button>     <button android:text="button" android:id="@+id/button2" android:layout_width="wrap_content" android:layout_height="wrap_content"></button> </tablerow> 

want set margin.how can using xml?

try left margin second 1 in similar:

<edittext      android:id="@+id/edittext1"     android:layout_height="wrap_content"     android:layout_width="wrap_content"      android:layout_marginleft="15dp"     android:padding="12dp"       android:text="edittext" >  </edittext> 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -