Skip to content Skip to sidebar Skip to footer

Round Button In Android

I want to create a circular button having a plus and minus sign on to this and exactly used in Android Contacts application like shown in the image as below:

Solution 1:

You may see implementation of this button in android source code

It's just ImageButton with circular png as background. Here is definition of their styles:

<stylename="MinusButton"><itemname="android:background">@drawable/btn_circle</item><itemname="android:src">@drawable/ic_btn_round_minus</item><itemname="android:contentDescription">@string/description_minus_button</item></style><stylename="PlusButton"><itemname="android:background">@drawable/btn_circle</item><itemname="android:src">@drawable/ic_btn_round_plus</item><itemname="android:contentDescription">@string/description_plus_button</item></style>

Solution 2:

Just apply your image using android:background="@drawable/image" as one of the button properties in the xml file

Post a Comment for "Round Button In Android"