yeah,thanks for that.
i really did it via onCreate and onCreateOptionsMenu ,and they both
work fine.

On Aug 18, 4:07 pm, String <sterling.ud...@googlemail.com> wrote:
> On Aug 18, 6:27 am, Barry Wei <barat...@gmail.com> wrote:
>
> > i created a new Activity. and created a new layout file under res/
> > layout .
> > but how could i bind all these layout file with this Activity ?
>
> I've always just done it in my activity's onCreate handler with a call
> to setContentView(R.layout.whatever). There's a very simple example in
> Hello 
> World:http://developer.android.com/intl/fr/guide/tutorials/hello-world.html...
>
> Menus are another topic, but again there's a good guide in the 
> docs:http://developer.android.com/intl/fr/guide/topics/ui/menus.html#xml
>
> Good luck,
>
> String
--~--~---------~--~----~------------~-------~--~----~
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
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to