Can create Menu Context item icon?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Can create Menu Context item icon?

Postby dennie » Sat Aug 08, 2009 2:02 am

Can I create menu context item icon?
dennie
Junior Developer
Junior Developer
 
Posts: 12
Joined: Sat Jul 18, 2009 8:10 am

Top

Postby stifry » Fri Aug 14, 2009 12:03 am

Yes. use the setIcon method:

menu.add(0,100,100,R.string.menu_logger).setIcon(R.drawable.menu_logger_32);
Visit Trackaroo.com!
Trackmaster - Motorsports Lap Timer
Dynomaster - Performance Dyno
Image Image
User avatar
stifry
Developer
Developer
 
Posts: 46
Joined: Tue Feb 17, 2009 7:50 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 6 guests