I have a gridview with items of a custom view. The custom view is a
relative layout with an image at the top and 3 textviews underneath.
One or two of the textviews can possibly wrap onto 2-3 lines depending on
the values.
When I scroll down through my grid this works as I'd like, with the images
all aligned at the top, and the textviews extending as needed. But when I
scroll from bottom to top, the alignment is all of the bottom textview
which means that the images are out of alignment, which is not what I'm
after.
I have read that I should be using layout_gravity="top" and have tried
this. I have also read that relativelayout doesn't honour this, but when I
changed my custom view to a linearlayout this still didn't work.
Any ideas would be gratefully received!
I have tried to attach an explanation of what I mean, below.
Scrolling down
------ ------ ------
Image Image Image
------ ------ ------TView1 TView1 TView1------ ------
------TView2 TView2 TView2------ TView2 ------TView3 ------
TView3------ TView3 ------
------
Scrolling Up
------------ ------
Image Image Image
------------ TView1 ------TView1 ------ TView1------
TView2 ------TView2 TView2 TView2------ ------ ------TView3
TView3 TView3------ ------ ------
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.