Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add controls to a Tab Layout in Andriod?

 
Joe Brown
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am following this tutorial http://developer.android.com/intl/de/guide/tutorials/views/hello-tabwidget.html and have completed it. Now I would actually like to add you know some controls to these tabs like textboxes(text edit).

How do I do this? I go to my mail.xml using eclipse as my ide and go to layout view and I now get a NullPointerException so I can't even drag stuff onto the layout anymore.

Thanks
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I go to my mail.xml using eclipse


It's main.xml.

You can directly use Droiddraw as a Graphical User Interface. Here is a demo how to use that and you can also download exe for Mac OS X, Windows, Linux.
 
Joe Brown
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pramod P Deore wrote:
I go to my mail.xml using eclipse


It's main.xml.

You can directly use Droiddraw as a Graphical User Interface. Here is a demo how to use that and you can also download exe for Mac OS X, Windows, Linux.


Cool I will check it out. How can I add the stuff without using that though? I also don't see a tab view for it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic