I have a Button like this….
<Button
android:id="@+id/mark_button"
android:layout_width="wrap_content"
android:layout_height="33dp"
android:text="Note"
android:focusable="false"
android:gravity="center_horizontal|center_vertical" />
It has a fixed size and if I test the App on my phone the text is not getting centered in the button, so the bottom of the text gets cut. Look here :Picture
Do u have any suggestions?
use
wrap_contentfor your layout height and usestyle="?android:attr/buttonStyleSmall".you will get a smaller button, which has a size similar to the size you want:
your code should look like this: