Question: Can I set some space inside 'EditText' in the beginning and at the end? If possible, then how? Actually, I have done some customization on my 'EditText' view and now it shows like this, as shown in the below image:

![Emulator screen shot](https://i.stack.imgur.com/SoUOZ.png)

In my case, as you see, in my "description" field, the word "Description" starts from the very beginning, which doesnt look attractive, I want to keep some space in the beginning and at the end of the EditText's text. And also i want to set this, at the run time as this editText views are set on the runtime after a selection from the spinner. Can i achieve this?

Answer: 
try this code

```
 android:paddingLeft="5dp"

```
You can do this through XML as well in coding.
If you want to do in XML, You have to do the padding to required Edit text.

```
<EditText
android:id="@+id/bt_description"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:paddingLeft="10dp" />

```

If not you can do this through code as above said.

```
email.setPadding(int left,int top,int right,int bottom);

```