why no Horizontal GridView/ListView ?

by allstars » Mon, 27 Apr 2009 21:57:28 GMT


Sponsored Links
 hi
i would like to ask why GridView can only be vertically

there is a HorizontalScrollView
but there is a  ScrollView , which is vertically

i know GridView and ListView both extend from AbsListView
which is only for vertical

but i would like to ask why you didnt design more Horizontal widgets
in the first place
thanks
--~--~---------~--~----~------------~-------~--~----~



why no Horizontal GridView/ListView ?

by Dianne Hackborn » Tue, 28 Apr 2009 01:17:34 GMT


 Whoops sorry, I am wrong, it is Gallery that is horizontal.  Anyway our
primary navigation through data in the UI is vertical, so those are the
widgets we have.  We generally try to keep features out of the platform that
aren't commonly used (especially in the built-in apps) because (a) they use
space on the device (we are very short on space in the system image on the
G1), and (b) they are likely to not be well tested, and thus buggy (see
tabs).







-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


why no Horizontal GridView/ListView ?

by Dianne Hackborn » Tue, 28 Apr 2009 01:18:24 GMT


 Er...  GridView -is- horizontal.  (And HorizontalScrollView is just being
added for 1.5.)






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~



why no Horizontal GridView/ListView ?

by allstars » Tue, 28 Apr 2009 11:11:55 GMT


 Dear Dianne
thanks for the reply

and thanks for the tip that HorizontalScrollView is just added in 1.5
i didnt notice that


but i would like to ask more

you said GridView -is- horizontal
but i have checked the code in AbsListView.java and GridView.java
most code for layout is only for vertical, and compute top/bottom
offset

so i am not quite sure about your 'horizontal'
do you mean it can be placed in landscape mode?

thanks



--~--~---------~--~----~------------~-------~--~----~



why no Horizontal GridView/ListView ?

by Dianne Hackborn » Tue, 28 Apr 2009 11:32:32 GMT


 Please read my correction.








-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~



why no Horizontal GridView/ListView ?

by allstars » Tue, 28 Apr 2009 12:05:10 GMT


 dear Dianne
thanks

i read your reply on the web and
it seems your second post(the correction) comes first to the group
so i thought the actual first post was the correction

ha  now i get it

thanks anyway








--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Will a notification still work if the device once shut down.

Hi all,
    I have an application with notification. I want to keep the
notification working even if the device once shut down just like an
alarm. Could anyone give me some sample code to help me?
Thank you in advance!
--~--~---------~--~----~------------~-------~--~----~

2. about the hardware acceleration of Skia drawing

No, Skia is not accelerated.






-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~

3. How to handle widget's "Long Click" event on home screen?

4. Ashmem on android

5. Android Network Awards

6. placing a widget by default on homescreen

7. An App contains a BroadcastReceiver and an Activity