How to create custom button in Android using XML Styles

I want to make this kind of button [same background & text] colors by using XML Styles

that’s just for an example, i want to write some other texts, like: About Me

Still i am using button created by designer in Photoshop

    <ImageButton
        android:id="@+id/imageButton5"
        android:contentDescription="AboutUs"
        android:layout_width="wrap_content"
        android:layout_marginTop="8dp"
        android:layout_height="wrap_content"
        android:layout_below="@+id/view_pager"
        android:layout_centerHorizontal="true"
        android:background="@drawable/aboutus" />

Note: I need this kind of button in every size and shape

I don’t want to use any image in my Android App i want to make it using XML only

Leave a Comment