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. android market account still ask for payment...

Hi,

i signed up a few hours ago to the android market, i paid the 25$ usd
and received the receipt from google checkout, but when i try to
complete it, still ask me for payment.

and when i go to this url: http://market.android.com/publish/receipt

it says: "Waiting for Google Checkout payment confirmation..."

i already sent a email for google market support but i don't think
they will answer soon.

any suggestion of how to solve this?

Regards.

-- 

2. Stagefright Mediaextractor: how to detect interlaced streams in video files?

Hi,

Is it possible to detect scan type (progressive or interlaced) of a video
file in stagefright?

I see below listed fields are query-able with metadata of file through
stagefright, but not scan-type which i guess is avaiable in MP4 file header.
Any hint on how to detect scan-type of video file at Stagefright player
driver? Or is it available in opencore??

Thanks,
Deva

PS.
enum {
    kKeyMIMEType          = 'mime',
    kKeyWidth             = 'widt',
    kKeyHeight            = 'heig',
    kKeyChannelCount      = '#chn',
    kKeySampleRate        = 'srte',
    kKeyBitRate           = 'brte',
    kKeyESDS              = 'esds',
    kKeyAVCC              = 'avcc',
    kKeyVorbisInfo        = 'vinf',
    kKeyVorbisBooks       = 'vboo',
    kKeyWantsNALFragments = 'NALf',
    kKeyIsSyncFrame       = 'sync',
    kKeyIsCodecConfig     = 'conf',
    kKeyTime              = 'time',
    kKeyDuration          = 'dura',
    kKeyColorFormat       = 'colf',
    kKeyPlatformPrivate   = 'priv',
    kKeyDecoderComponent  = 'decC',
    kKeyBufferID          = 'bfID',
    kKeyMaxInputSize      = 'inpS',
    kKeyThumbnailTime     = 'thbT',

    kKeyAlbum             = 'albu',
    kKeyArtist            = 'arti',
    kKeyAlbumArtist       = 'aart',
    kKeyComposer          = 'comp',
    kKeyGenre             = 'genr',
    kKeyTitle             = 'titl',
    kKeyYear              = 'year',
    kKeyAlbumArt          = 'albA',
    kKeyAlbumArtMIME      = 'alAM',
    kKeyAuthor            = 'auth',
    kKeyCDTrackNumber     = 'cdtr',
    kKeyDiscNumber        = 'dnum',
    kKeyDate              = 'date',
    kKeyWriter            = 'writ',
};

-- 

3. Introduce to game Development

4. opengl ES 2.0 FrameBuffer strange effect

5. Forcing locale inside our app.

6. how to change location provider provider...

7. Android Canvas.getMatrix followed by Canvas.setMatrix(null) raises NullPointerException