aspose file tools*
The moose likes Android and the fly likes tabview in android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "tabview in android" Watch "tabview in android" New topic
Author

tabview in android

ghouse mohammed
Greenhorn

Joined: Nov 23, 2011
Posts: 15
Hi everybody i have a question to everybody as tabactivity is depreciated in android what should we used instead of this so that i can create tabs in my app
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
What do the javadocs say that you should use instead? There's generally a comment if a class or method is deprecated.
ghouse mohammed
Greenhorn

Joined: Nov 23, 2011
Posts: 15
Tim Moores wrote:What do the javadocs say that you should use instead? There's generally a comment if a class or method is deprecated.





they are saying to use fragment and when i use it fragments are displayed only half of the screen (parent) but i want to display the activity in the entire screen
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
I am sure that there are ways of sizing fragments to any size you desire. Have you worked through the fragment tutorial on the Android Developer's blog?
Also remember that TabActivity being deprecated doesn't mean it won't work - it just means that there may be better (in this case future-proof) ways of doing things. Especially if the app isn't meant for tablets, fragments don't buy you anything.
ghouse mohammed
Greenhorn

Joined: Nov 23, 2011
Posts: 15
Tim Moores wrote:I am sure that there are ways of sizing fragments to any size you desire. Have you worked through the fragment tutorial on the Android Developer's blog?
Also remember that TabActivity being deprecated doesn't mean it won't work - it just means that there may be better (in this case future-proof) ways of doing things. Especially if the app isn't meant for tablets, fragments don't buy you anything.



ok then what should i use to create a tabview ? my app is for phones not for tablets
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
Not sure what you're asking - GUI elements are declared in layout XML files, as any Android programming tutorial demonstrates.
ghouse mohammed
Greenhorn

Joined: Nov 23, 2011
Posts: 15
Tim Moores wrote:Not sure what you're asking - GUI elements are declared in layout XML files, as any Android programming tutorial demonstrates.



i want to create a tabview what will be the best approach for me
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
We don't know what the best approach might be in your circumstances. What approaches are you considering? Where do you see the differences between them? Do you have reason to believe that the standard approach (XML layout files) will not work well for your app?
ghouse mohammed
Greenhorn

Joined: Nov 23, 2011
Posts: 15
Tim Moores wrote:We don't know what the best approach might be in your circumstances. What approaches are you considering? Where do you see the differences between them?


right know only one thing i came to know is using tabactivity and i am able to create my app .but when i heard about the tabactivity depreaceation i am trying to find another way
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
There's no point in doing so if you aren't targeting tablets; that's what fragments are all about.
ghouse mohammed
Greenhorn

Joined: Nov 23, 2011
Posts: 15
Tim Moores wrote:There's no point in doing so if you aren't targeting tablets; that's what fragments are all about.



ok what about actionbar and why it is used can you give brief introduction of it
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
That's a different question for which you should start a new topic. Be sure to read the Android Developer's blog first which is sure to have an introduction to that topic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tabview in android