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

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


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

2011-04-22 Thread Robert Louden
Ah, the dynamic part makes sense for a GridView. I've seen a ScrollView also
be used with a LinearLayout template, so I guess it really is preference at
that point.

I must say that I never thought of using a ListView for the dashboard. I'm
not even sure how. Do you use two views in each list row? What benefit do
you see with using the ListView?

On Fri, Apr 22, 2011 at 5:14 PM, Albert albert8...@googlemail.com wrote:

 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-https://ssl.gstatic.com/android/market/com.alportela.tracker.view/ss-0-320-480-160-0-bfe11461b144d969f0242f525bf500f21057cfe8
 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+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
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] Re: Android Dashboard - GirdView or LinearLayout

2011-04-22 Thread Mark Murphy
Also, see:

http://stackoverflow.com/questions/4981430/dashboard-layout-pattern

On Fri, Apr 22, 2011 at 5:26 PM, Robert Louden rloude...@gmail.com wrote:
 Ah, the dynamic part makes sense for a GridView. I've seen a ScrollView also
 be used with a LinearLayout template, so I guess it really is preference at
 that point.

 I must say that I never thought of using a ListView for the dashboard. I'm
 not even sure how. Do you use two views in each list row? What benefit do
 you see with using the ListView?

 On Fri, Apr 22, 2011 at 5:14 PM, Albert albert8...@googlemail.com wrote:

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

 --
 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Re: Android Dashboard - GirdView or LinearLayout

2011-04-22 Thread Robert Louden
Mark, that was one of the examples that I used when researching on how to
create a dashboard; very useful. They use a LinearLayout to organize the
dashboard.

On Fri, Apr 22, 2011 at 5:28 PM, Mark Murphy mmur...@commonsware.comwrote:

 Also, see:

 http://stackoverflow.com/questions/4981430/dashboard-layout-pattern

 On Fri, Apr 22, 2011 at 5:26 PM, Robert Louden rloude...@gmail.com
 wrote:
  Ah, the dynamic part makes sense for a GridView. I've seen a ScrollView
 also
  be used with a LinearLayout template, so I guess it really is preference
 at
  that point.
 
  I must say that I never thought of using a ListView for the dashboard.
 I'm
  not even sure how. Do you use two views in each list row? What benefit do
  you see with using the ListView?
 
  On Fri, Apr 22, 2011 at 5:14 PM, Albert albert8...@googlemail.com
 wrote:
 
  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-https://ssl.gstatic.com/android/market/com.alportela.tracker.view/ss-0-320-480-160-0-bfe11461b144d969f0242f525bf500f21057cfe8
 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
   conferencehttp://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+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  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



 --
 Mark Murphy (a Commons Guy)
 http://commonsware.com | http://github.com/commonsguy
 http://commonsware.com/blog | http://twitter.com/commonsguy

 Android Training in NYC: http://marakana.com/training/android/

 --
 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


-- 
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] Re: Android Dashboard - GirdView or LinearLayout

2011-04-22 Thread Mark Murphy
On Fri, Apr 22, 2011 at 6:18 PM, Robert Louden rloude...@gmail.com wrote:
 Mark, that was one of the examples that I used when researching on how to
 create a dashboard; very useful. They use a LinearLayout to organize the
 dashboard.

Well, actually, I was referring to (*cough*) my answer on that
question, linking to Roman Nurik's dedicated DashboardLayout:

https://gist.github.com/882650

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in NYC: http://marakana.com/training/android/

-- 
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] Re: Android Dashboard - GirdView or LinearLayout

2011-04-22 Thread Albert
I wasnt implementing the standard dashboard since I had an x numbers
of items plus I wanted to add a button below the dashboard that
would take the whole width - couldnt use a GridView since I wanted
that button to scroll with the dashboard.

I used a LinearLayout as the row with 2 containers left  right and
they both cover the whole width of the device.


On Apr 22, 10:26 pm, Robert Louden rloude...@gmail.com wrote:
 Ah, the dynamic part makes sense for a GridView. I've seen a ScrollView also
 be used with a LinearLayout template, so I guess it really is preference at
 that point.

 I must say that I never thought of using a ListView for the dashboard. I'm
 not even sure how. Do you use two views in each list row? What benefit do
 you see with using the ListView?







 On Fri, Apr 22, 2011 at 5:14 PM, Albert albert8...@googlemail.com wrote:
  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-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+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
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