views:

112

answers:

2

Hello All,

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:

alt text

If any body knows please tell me..

Thank You All.....

+2  A: 

Have you tried simply by using a circular png as your button's drawable?

kiki
Hi kiki, Thank you and I have not tried this but please could you tell me this is default button or just an ImageButton??
Creative-MITian
My idea is ImageButton.
kiki
Ok Thanks dear......
Creative-MITian
Please accept an answer that you found useful for your questions. This increases your AcceptRate% and encourages others to answer your questions.
kiki
+3  A: 

You may see implementation of this button in android source code: http://android.git.kernel.org/?p=platform/packages/apps/Contacts.git;a=tree

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

<style name="MinusButton">
    <item name="android:background">@drawable/btn_circle</item>
    <item name="android:src">@drawable/ic_btn_round_minus</item>
    <item name="android:contentDescription">@string/description_minus_button</item>
</style>

<style name="PlusButton">
    <item name="android:background">@drawable/btn_circle</item>
    <item name="android:src">@drawable/ic_btn_round_plus</item>
    <item name="android:contentDescription">@string/description_plus_button</item>
</style>
Sergey Glotov