nks
nks

Reputation: 115

How to make the text starts from left in edit text android

When i start entering in edit text, the text starts at the left border.I need to start entering text one step after the border line of the edit text.how to do it?

Upvotes: 0

Views: 81

Answers (2)

Vinayakkumar
Vinayakkumar

Reputation: 6480

Simply give padding left like below in your EditText

<EditText android:paddingLeft="5sp"/>

Upvotes: 0

Archie.bpgc
Archie.bpgc

Reputation: 24012

Just add padding:

android:paddingLeft="5dp"

to your EditText

Upvotes: 2

Related Questions