Creating custom button with Image and text

Put your problem here if it does not fit any of the other categories.

Creating custom button with Image and text

Postby fresco » Wed Feb 13, 2008 3:33 pm

There are two types of buttons in android api, one contains only text and second only image. I wondering if there is some way to create Button with Image and text together ? This is a real generic component you can find in every existing GUI library, so may be I missed something ?
fresco
Junior Developer
Junior Developer
 
Posts: 24
Joined: Sun Nov 18, 2007 10:36 am

Top

Postby plusminus » Wed Feb 13, 2008 3:53 pm

Hello fresco,

I think the new SDK could provide such TextImageButtons like the new GUI already looks like it is using such buttons:
See second video in :arrow: viewtopic.php?t=847

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby fresco » Wed Feb 13, 2008 4:43 pm

Too bad, I need it for "android challange" and I can't wait to release of new SDK. :(
fresco
Junior Developer
Junior Developer
 
Posts: 24
Joined: Sun Nov 18, 2007 10:36 am

Postby plusminus » Wed Feb 13, 2008 6:15 pm

Hello fresco

So you want something like this:
Image


Get some inspiration here: viewtopic.php?t=337
Perhaps extend RelativeLayout...

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby fresco » Wed Feb 13, 2008 8:24 pm

Button has cool 3D view and flashes when clicked. I know how to combine couple of views into single one, but I thouhgt may be there is some better way to do that.
fresco
Junior Developer
Junior Developer
 
Posts: 24
Joined: Sun Nov 18, 2007 10:36 am

Postby plusminus » Wed Feb 13, 2008 8:26 pm

New SDK is out, perhaps sth is in there :D

....busy... :)
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Postby fresco » Wed Feb 13, 2008 8:32 pm

Just saw it ! Yaaaaaahooooo ! I mean Gooooogleeee !
fresco
Junior Developer
Junior Developer
 
Posts: 24
Joined: Sun Nov 18, 2007 10:36 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 29 guests