Android - поля, указанные в пользовательском стиле, не вступают в силу

Я хочу, чтобы по умолчанию для EditText было поле 10dp. Поэтому в моем файле styles.xml я настроил следующее:

<resources xmlns:android="http://schemas.android.com/apk/res/android">

    <style name="MyTheme" parent="android:style/Theme.NoTitleBar">
        <item name="android:editTextStyle">@style/edit_text_default</item>
    </style>

    <style name="edit_text_default" parent="android:style/Widget.EditText">
        <item name="android:layout_margin">10dp</item>
    </style>

</resources>

Затем в AndroidManifest.xml я установил тему приложений на ту, которую я определил:

<application
     android:icon="@drawable/ic_launcher"
     android:label="@string/app_name"
     android:theme="@style/MyTheme" >
...

Работает тема «Без заголовка». Однако поля по умолчанию для EditText нет, он все еще заполняет родительский элемент. Вот мой вид таблицы:

<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#FFFFFF" >
    <TableRow>
        <EditText android:hint="@string/last_name" />
    </TableRow>
    <TableRow>
        <EditText android:hint="@string/first_name" />
    </TableRow>
</TableLayout>

Ответы на вопрос(3)

Ваш ответ на вопрос