Re: [android-developers] Multiple layouts

2011-11-20 Thread Kostya Vasilyev

Assuming you mean the original Galaxy Tab P1000.

According to Samsung, it is a -large device, so using res/layout-large, 
or perhaps values-large/dimen.xml should work.


Those new resource qualifiers are new with 3.2, and it's a runtime 
version requirement.


Layouts scaled to a portion of the screen and centered sounds like 
compatibility mode. Make sure that  is directly inside 
, like this:



http://schemas.android.com/apk/res/android";
package="..."
android:versionCode="..."
android:versionName="..." >





-- Kostya

20.11.2011 12:31, Stephen Lebed пишет:

Hi,

I'm trying to add support for a layout for the Samsung Galaxy Tab 7
device.  I can't seem to find a way to specify a layout config that it
will pull the layout xml from.  It keeps using the resource from the
Normal screen/High Density folder, which makes sense, but the layout
is small and centered in the middle of the screen.  I was hoping to
use the newer layout-sw600dpi folder config, but it never pulls from
the folder.  I've set my min api to 4 and target api to 14.

Does the Support Library offer a backward compatible means to use the
newer qualifiers in 3.2 in older api's?  (I'm hoping this is the
solution!)

Is there a way to code my app to identity a devices resolution and
direct the system to use a particle layout?

Will using Fragments in anyway help with older apis?

I know that there is a huge debate about resolutions and densities and
I should create a layout that hard codes sizes, but that is what my
app requires.  I've done everything I can to keep it resolution
independent and have created several layout to address a range to
display sizes, but the Samsung 7" device falls through the cracks.

I've search everywhere I could find and have read and reread to sdk
docs, but I haven't found an answer.

Any help would be appreciated.

Thanks,
Stephen Lebed



--
Kostya Vasilyev

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Multiple layouts

2011-11-20 Thread Stephen Lebed
Hi,

I'm trying to add support for a layout for the Samsung Galaxy Tab 7
device.  I can't seem to find a way to specify a layout config that it
will pull the layout xml from.  It keeps using the resource from the
Normal screen/High Density folder, which makes sense, but the layout
is small and centered in the middle of the screen.  I was hoping to
use the newer layout-sw600dpi folder config, but it never pulls from
the folder.  I've set my min api to 4 and target api to 14.

Does the Support Library offer a backward compatible means to use the
newer qualifiers in 3.2 in older api's?  (I'm hoping this is the
solution!)

Is there a way to code my app to identity a devices resolution and
direct the system to use a particle layout?

Will using Fragments in anyway help with older apis?

I know that there is a huge debate about resolutions and densities and
I should create a layout that hard codes sizes, but that is what my
app requires.  I've done everything I can to keep it resolution
independent and have created several layout to address a range to
display sizes, but the Samsung 7" device falls through the cracks.

I've search everywhere I could find and have read and reread to sdk
docs, but I haven't found an answer.

Any help would be appreciated.

Thanks,
Stephen Lebed

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Multiple Layouts in a ListView

2009-11-05 Thread Mark Murphy
> I am looking for some help around ListViews. I would like to use a
> ListView to hold a number of rows of data however in between some of
> these rows of data may appear a header indicating a new section of
> data types. Can someone tell me have they implemented a ListView that
> uses multiple layout types and if so how do you determine which layout
> type is being passed back in the convertView in order to make sure you
> do not try to recast it to the wrong type.

You can use:

* Jeff Sharkey's original SeparatedListAdapter (GPL)
[http://jsharkey.org/blog/2008/08/18/separating-lists-with-headers-in-android-09/]

* My updated rendition (GPL)
[http://github.com/commonsguy/cw-advandroid/tree/master/ListView/Sections/]

* My MergeAdapter, which can be used for this scenario as well (Apache)
[http://github.com/commonsguy/cwac-merge]

Here is a StackOverflow discussion of the techniques for doing it yourself:

http://stackoverflow.com/questions/1660417/android-efficientadapter-with-two-different-views

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Multiple Layouts in a ListView

2009-11-05 Thread Loki117
Hey Guys,

I am looking for some help around ListViews. I would like to use a
ListView to hold a number of rows of data however in between some of
these rows of data may appear a header indicating a new section of
data types. Can someone tell me have they implemented a ListView that
uses multiple layout types and if so how do you determine which layout
type is being passed back in the convertView in order to make sure you
do not try to recast it to the wrong type.

Tom

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en