You can describe/inflate menu in XML, though it's almost not
documented.
I discovered that when looking at the ApiDemos source code.

Menu (panel and context ones) layouts are to put in the res/menu
folder.
According to me the best way to teach how to use them is to look at
the ApiDemos source code.

On Dec 1, 7:01 am, souvik <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to add menu item dynamically.
>
> Instead of adding items like this mentioned below, how can I add item
> dynamically?
> items.add( "item1" );
> items.add( "item2" );
>
> I have a file "a1.txt" and the content of the file is like:
> a1.txt
> =========
> 1.Question1
> 2.Question2
> 3.Question3
>
> Now i want to read this "a1.txt" and add "1.Question1" ,"2.Question2"
> as menu item.
>
> Please provide some sample code.
> Thanks,
> Souvik
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to