Re: [android-developers] supporting tablet and a phone

2012-07-02 Thread TreKing
On Mon, Jul 2, 2012 at 1:56 PM, bob wrote: > Is it common to have two XML layout files if you want an app to work on a > tablet and a phone? No. http://developer.android.com/training/basics/supporting-devices/index.html -

[android-developers] supporting tablet and a phone

2012-07-02 Thread bob
Is it common to have two XML layout files if you want an app to work on a tablet and a phone? For instance, if (is_a_phone() == true) setContentView(R.layout.phone_xml); else setContentView(R.layout.tablet_xml); -- You received this message because you are subscribed to the Google Groups "