Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
how to load different layout for tablet and phone ?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Amit Mangal  
View profile  
 More options Apr 16 2012, 8:50 am
From: Amit Mangal <forum.amit.man...@gmail.com>
Date: Mon, 16 Apr 2012 18:20:40 +0530
Local: Mon, Apr 16 2012 8:50 am
Subject: how to load different layout for tablet and phone ?

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 layout i have prepared is different
and tablet screen is big so i want to load different layout for tablet.

any idea how to do that.

thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Murphy  
View profile  
 More options Apr 16 2012, 8:54 am
From: Mark Murphy <mmur...@commonsware.com>
Date: Mon, 16 Apr 2012 08:54:24 -0400
Local: Mon, Apr 16 2012 8:54 am
Subject: Re: [android-developers] how to load different layout for tablet and phone ?
http://developer.android.com/guide/practices/screens_support.html

On Mon, Apr 16, 2012 at 8:50 AM, Amit Mangal

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Amit Mangal  
View profile  
 More options Apr 16 2012, 8:58 am
From: Amit Mangal <forum.amit.man...@gmail.com>
Date: Mon, 16 Apr 2012 18:28:31 +0530
Local: Mon, Apr 16 2012 8:58 am
Subject: Re: [android-developers] how to load different layout for tablet and phone ?

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.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Murphy  
View profile  
 More options Apr 16 2012, 9:02 am
From: Mark Murphy <mmur...@commonsware.com>
Date: Mon, 16 Apr 2012 09:02:16 -0400
Local: Mon, Apr 16 2012 9:02 am
Subject: Re: [android-developers] how to load different layout for tablet and phone ?
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 object and use that in
an if() test to decide which Intent to use with startActivity().

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training...At Your Office: http://commonsware.com/training


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Amit Mangal  
View profile  
 More options Apr 16 2012, 9:05 am
From: Amit Mangal <forum.amit.man...@gmail.com>
Date: Mon, 16 Apr 2012 18:35:15 +0530
Local: Mon, Apr 16 2012 9:05 am
Subject: Re: [android-developers] how to load different layout for tablet and phone ?

ok thanks

On Mon, Apr 16, 2012 at 6:32 PM, Mark Murphy <mmur...@commonsware.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iñaki  
View profile  
 More options Apr 16 2012, 9:11 am
From: iñaki <inaki.s...@gmail.com>
Date: Mon, 16 Apr 2012 15:11:58 +0200
Local: Mon, Apr 16 2012 9:11 am
Subject: Re: [android-developers] how to load different layout for tablet and phone ?
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 <forum.amit.man...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Amit Mangal  
View profile  
 More options Apr 16 2012, 9:27 am
From: Amit Mangal <forum.amit.man...@gmail.com>
Date: Mon, 16 Apr 2012 18:57:28 +0530
Local: Mon, Apr 16 2012 9:27 am
Subject: Re: [android-developers] how to load different layout for tablet and phone ?

unable to understand do you have any small example ?

thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iñaki  
View profile  
 More options Apr 16 2012, 9:45 am
From: iñaki <inaki.s...@gmail.com>
Date: Mon, 16 Apr 2012 15:45:27 +0200
Local: Mon, Apr 16 2012 9:45 am
Subject: Re: [android-developers] how to load different layout for tablet and phone ?
Hi,
http://blog.radioactiveyak.com/2011/02/strategies-for-honeycomb-and-b...

Iñaki

On 16 April 2012 15:27, Amit Mangal <forum.amit.man...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »