• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tabview in android

 
ghouse mohammed
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2747
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2747
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2747
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure what you're asking - GUI elements are declared in layout XML files, as any Android programming tutorial demonstrates.
 
ghouse mohammed
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2747
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2747
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no point in doing so if you aren't targeting tablets; that's what fragments are all about.
 
ghouse mohammed
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 2747
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic