Re: [android-developers] how to load different layout for tablet and phone ?

2012-04-16 Thread Mark Murphy
http://developer.android.com/guide/practices/screens_support.html On Mon, Apr 16, 2012 at 8:50 AM, Amit Mangal forum.amit.man...@gmail.com wrote: Hi there, I am creating on android app. i want to know how to load different layout for tablet and phone. The reason is phone screen is small so

Re: [android-developers] how to load different layout for tablet and phone ?

2012-04-16 Thread Amit Mangal
what is this i want to load different activity for tablet and different for phone how to do that ? thanks On Mon, Apr 16, 2012 at 6:24 PM, Mark Murphy mmur...@commonsware.comwrote: http://developer.android.com/guide/practices/screens_support.html On Mon, Apr 16, 2012 at 8:50 AM, Amit Mangal

Re: [android-developers] how to load different layout for tablet and phone ?

2012-04-16 Thread Mark Murphy
On Mon, Apr 16, 2012 at 8:58 AM, Amit Mangal forum.amit.man...@gmail.com wrote: what is this i want to load different activity for tablet and different for phone how to do that ? That is not a great idea, in general. That being said, you can find out the screen size bucket from a Configuration

Re: [android-developers] how to load different layout for tablet and phone ?

2012-04-16 Thread Amit Mangal
ok thanks On Mon, Apr 16, 2012 at 6:32 PM, Mark Murphy mmur...@commonsware.comwrote: On Mon, Apr 16, 2012 at 8:58 AM, Amit Mangal forum.amit.man...@gmail.com wrote: what is this i want to load different activity for tablet and different for phone how to do that ? That is not a great

Re: [android-developers] how to load different layout for tablet and phone ?

2012-04-16 Thread iñaki
One solution is for example: -- Create a layout in layout folder -- Create a layout in layout-xlarge folder with two panes In the activities you can ask for the second pane... If you have second pane you´re in a xlarge resource. Iñaki On 16 April 2012 15:05, Amit Mangal

Re: [android-developers] how to load different layout for tablet and phone ?

2012-04-16 Thread Amit Mangal
unable to understand do you have any small example ? thanks On Mon, Apr 16, 2012 at 6:41 PM, iñaki inaki.s...@gmail.com wrote: One solution is for example: -- Create a layout in layout folder -- Create a layout in layout-xlarge folder with two panes In the activities you can ask for the

Re: [android-developers] how to load different layout for tablet and phone ?

2012-04-16 Thread iñaki
Hi, http://blog.radioactiveyak.com/2011/02/strategies-for-honeycomb-and-backwards.html Iñaki On 16 April 2012 15:27, Amit Mangal forum.amit.man...@gmail.com wrote: unable to understand do you have any small example ? thanks On Mon, Apr 16, 2012 at 6:41 PM, iñaki inaki.s...@gmail.com wrote: