Я хочу отображать TEXT
и Icon
на кнопке.
+----------------------------+
| Icon TEXT |
+----------------------------+
Я пробовал с помощью
<Button
android:id="@+id/Button01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingLeft="40dip"
android:text="TEXT"
android:drawableLeft="@drawable/Icon" />
Но TEXT
и Icon
не находятся в центре.
Мой размер TEXT
варьируется, в соответствии с размером текста Icon
и TEXT
должен быть настроен на центр.
Как мне это сделать?