Search code examples
androidxmleclipsealignmentandroid-edittext

Edittext input type alignment extra space


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 !


Solution

  • 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