Re: [android-developers] GridView shows only one row with layout_height=WRAP_CONTENT

2012-10-02 Thread Maniteja Pusuluri
hai, can u help me. i am getting the images from webservices into my application.can u tell me when scroll reaches last i need to add 18 images dynamically at the bottom .and at the same time i need to delete the top 18 images in gridview can u send me any sample code if u have? i am using

Re: [android-developers] GridView shows only one row with layout_height=WRAP_CONTENT

2011-09-04 Thread NWD Sports
ot of cells then it is pointless to even try to get them to show up on one screen. Nicholas L. - NWD Sports.com Co-Founder -Original Message- From: Shri Sent: Friday, September 02, 2011 7:33 PM To: Android Developers Subject: [android-developers] GridView shows only one row with layout_h

Re: [android-developers] GridView shows only one row with layout_height=WRAP_CONTENT

2011-09-03 Thread Romain Guy
No, your best option is to create a custom layout. It's pretty easy to do, and it will be easier than trying to change GridView's behavior. On Sat, Sep 3, 2011 at 11:38 PM, Shri Borde wrote: > TableLayout is for cases where you want a specific number of columns. > However, I would like the numbe

Re: [android-developers] GridView shows only one row with layout_height=WRAP_CONTENT

2011-09-03 Thread Shri Borde
TableLayout is for cases where you want a specific number of columns. However, I would like the number of columns to adjust based on the width of the screen/parent ViewGroup as done by GridLayout. And I do not actually want the grid to scroll - I want its height to expand as much as needed to displ

Re: [android-developers] GridView shows only one row with layout_height=WRAP_CONTENT

2011-09-02 Thread Mark Murphy
On Fri, Sep 2, 2011 at 8:12 PM, Shri Borde wrote: > Actually, I am using a GridView in a ListView, not a LinearLayout. You cannot reliably put scrollable things in other scrollable things. > I am using the GridView as a table, and it seems > reasonable to want to display the table in a ListView.

Re: [android-developers] GridView shows only one row with layout_height=WRAP_CONTENT

2011-09-02 Thread Shri Borde
Actually, I am using a GridView in a ListView, not a LinearLayout. So the entire grid can actually be displayed by scrolling the list (with the Adapter architecture kicking in to display only those cells of the grid that are visible on screen). I am using the GridView as a table, and it seems reaso

Re: [android-developers] GridView shows only one row with layout_height=WRAP_CONTENT

2011-09-02 Thread Mark Murphy
On Fri, Sep 2, 2011 at 7:33 PM, Shri wrote: > I am using a GridView in a LinearLayout. I want the GridView to show > up as tall as needed to show all the rows. That is not really possible. For example, if you have a million cells, the user's device is not going to stretch to a few hundred meters

[android-developers] GridView shows only one row with layout_height=WRAP_CONTENT

2011-09-02 Thread Shri
I am using a GridView in a LinearLayout. I want the GridView to show up as tall as needed to show all the rows. However, I am seeing only one row when set (layout_width=MATCH_PARENT and) layout_height=WRAP_CONTENT. If I set layout_height to a size that equals mulitple rows, then I do see those rows