Friday, April 22, 2011

[android-developers] Re: Android Dashboard - GirdView or LinearLayout

My guess is that you would want to use a LinearLayout if the dashboard
will be static (you know before hand where everything goes) and prefer
a GridView if you have a dynamic dashboard - maybe you will even want
it to scroll (like places in Google Maps)

Now I have actually used a ListView in my app's dashboard - is just
slightly different as I got a "profile" section that takes the full
width:

https://ssl.gstatic.com/android/market/com.alportela.tracker.view/ss-0-320-480-160-0-bfe11461b144d969f0242f525bf500f21057cfe8

cant see how I can get that using a gridview.

- Alberto

On Apr 22, 7:13 pm, Robert <rloude...@gmail.com> wrote:
> Following the dashboard interface from the Google I/O 2010 conference<http://code.google.com/p/iosched/>,
> I see that they use a LinearLayout to make the dashboard. Other examples
> also use this style. I was wondering why wouldn't you use a GridView
> instead, seeing that it's mostly organized for you already? You can also
> more easily set a listener for the entire GridView, as oppose to
> individually writing a line of code for setting a listener for each button.
> Does it really matter or is there any difference?

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate