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. Can we access windows partition through android?

Hi,

I want to run some batch scripts to on windows box but my project is
android project hence it acess its shell if I use exec but is there
anyway I can able to access the windows partition?

Best Regards,

Amit Dixit

-- 

2. Posting Toast From Worker Thread to UI Thread

Hi
I was trying to post a toast notification in case something goes wrong
in a worker thread.
I do this by putting a handler.post(funcFailed) in the catch block
where funcFailed it a runnable and simply called a function
funcFailedshow()

funcFailedshow() is defined to be Toast.makeText(App.this,"Error in
funcfailed", Toast.LENGTH_LONG).show();

For some reason i cannot see the toast notification. Even if i replace
App.this (app is the applications name) with a getApplicationContext()
it does not work.

Could someone please help me with this.

Thanks

-- 

3. androidconnector and androidpublisher

4. Unable to create an android project

5. Why I'm not getting the "select package" field when I open a new Android Project?

6. screen design

7. accept me