Set Icon for menu item in the XML

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

Set Icon for menu item in the XML

Postby ploki » Mon Sep 28, 2009 7:30 pm

Hello.

How Can I set icon for the item in the xml file?
I try this, but does'nt work:
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <item android:id="@+id/about"
  3.  
  4.    android:title="About"
  5.  
  6.    android:src=  <!-- icon? -->
  7.  
  8.     "android.R.drawable.ic_menu_help" <!--if I want any graphic from the android resources I must writing this, or sth else? -->
  9.  
  10. />
  11.  
  12.  
Parsed in 0.001 seconds, using GeSHi 1.0.8.4

I would the xml layout than dynamic(if it possible of course), so if anyone knows how to do it - I will be grateful for help.

Thanks!
ploki
Freshman
Freshman
 
Posts: 4
Joined: Thu Sep 24, 2009 12:06 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests