[android-developers] GridView force measure of multiple columns
Hi, I've implemented a custom expandable view and am using a GridView to display a list of them. When I press on an a view in the second ( of two ) columns, my view expands and my GridView has all items below it shift down as the selected view expands. This works as intended. When I select and item in the first column, the view expands but the below items do not shift. Please see attached screenshots. In the first one, I have pressed the first row and as I explained, the views below it do not shift. In the second screenshot I press the second column and it works.
It seems GridView only measures the last column when finding an entire's rows height. I think as solution would be to override a method and have it compare each view in each column and find the max height for that row. I tried looking through the source code but could not find where Android measures and sets row heights. Thanks.
-- It seems GridView only measures the last column when finding an entire's rows height. I think as solution would be to override a method and have it compare each view in each column and find the max height for that row. I tried looking through the source code but could not find where Android measures and sets row heights. Thanks.
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
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home