File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes How to add controls to a Tab Layout in Andriod? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to add controls to a Tab Layout in Andriod?" Watch "How to add controls to a Tab Layout in Andriod?" New topic
Author

How to add controls to a Tab Layout in Andriod?

Joe Brown
Greenhorn

Joined: Aug 24, 2009
Posts: 14
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

Joined: Jul 15, 2008
Posts: 629

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.


Life is easy because we write the source code.....
Joe Brown
Greenhorn

Joined: Aug 24, 2009
Posts: 14
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to add controls to a Tab Layout in Andriod?