1

I want to give extra space to input texts in my edit text. here is what I have now :

enter image description here

but I want to achieve this :

enter image description here

which property of edittext will do this (in xml) ? or I have to do this in another way ?

Thanks in advance !

Infinite Recursion
  • 6,511
  • 28
  • 39
  • 51
g.d
  • 15
  • 5

2 Answers2

1

android:paddingLeft is the property you need. You can use it as android:paddingLeft="8dp"

Checkout this answer here: https://stackoverflow.com/a/4619943/1739882

Community
  • 1
  • 1
Chintan Soni
  • 24,761
  • 25
  • 106
  • 174
0

Add this attribute:

android:paddingLeft="10dp"

padding usually used to give an alignment to the text inside the EditText or even Buttons

please inform me if this is what you are looking for

Coderji
  • 7,655
  • 5
  • 37
  • 51