I have got a project that implement tablet version of an app. this app has only portrait mode without landscape mode support. so my approach would be implementation for both in tablet.
However, you guys all know that android has different type of devices and android version. how to make sure that my tablet app will work for every tablet devices. Also UI, what is the best practice to do in tablet? how can I make sure my app layout is fit in all devices? What kind of UI framework would be useful for developing android tablet?
You have to use fragments. So your app could look like this:
layout/main.xml:
layout-large/sw400dp:
R.id.handsetreturns null then it’s a tablet, in this case the statically added Fragments will be handled by their Fragments class.