Build menu like home menu in android

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

Build menu like home menu in android

Postby Oleg » Mon Dec 10, 2007 11:33 am

Hi all!Anybody know, how can I build my menu like this(see atachment image)
Attachments
HomeMenu.JPG
HomeMenu.JPG (6.01 KiB) Viewed 1644 times
Oleg
Experienced Developer
Experienced Developer
 
Posts: 57
Joined: Wed Nov 28, 2007 1:49 pm
Location: Ukraine

Top

Postby lordhong » Tue Dec 11, 2007 5:40 pm

not sure... :shock: but you can look at the image switcher from the demo and maybe you can add custom activity when onclick the image... :roll:
lordhong
Developer
Developer
 
Posts: 42
Joined: Thu Nov 22, 2007 5:25 am
Location: New York

Re: Build menu like home menu in android

Postby villain_dm » Mon Dec 17, 2007 1:33 am

Oleg wrote:Hi all!Anybody know, how can I build my menu like this(see atachment image)


it's not so difficult. I would say 8 of 10 :)

use "Gallery" to create such component. You also may need TextView (label) and 2xImageView (arrow icons)

then use getContentResolver().query(android.provider.Settings.Favorites.CONTENT_URI, null, null, null, null); to get Cursor to Favorites list. Then you can get intent, app title and also Drawable icon (using PackageManager).

then create your own ArrayAdapter. Override getView method (to display icon). Set your adapter to the gallery.
villain_dm
Freshman
Freshman
 
Posts: 4
Joined: Fri Dec 14, 2007 11:17 pm
Location: St.Petersburg, Russia

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: TurnitinBot [Bot] and 14 guests