Android ImageButton / Custom-Button?
Posted
by
user568306
on Stack Overflow
See other posts from Stack Overflow
or by user568306
Published on 2011-01-08T20:47:40Z
Indexed on
2011/01/08
20:54 UTC
Read the original article
Hit count: 198
Hi everyone,
I am new to android development. So far I could help myself in all matters by reading threads here on stackoverflow. Now I am stuck and need someones help. Unfortunately I am not allowed to post an image of a screenshot because I am a new mamber, so I try to descripe it.
I have a Samsung Galasy S and the clock app that ships with it has an button called "+ Create alarm". I want to create a similar button for my app. I've been experimenting with ImageButton. I do know how to get that "+"-Icon onto an ImageButton, but only centered and without text. I guess this is a custom button. Does anyone know how to do this? Can I do it in xml or do I need to extend the view-class and make it my own view?
© Stack Overflow or respective owner