[android-developers] Re: Listview - Header , footer issue
Android doesn't support putting two scrollable views one inside the other and i assume you dont want to divide the screen area between the listviews and make each take a constant size.
You're best (and probably only) choice is to just do everything manually. put a linear layout inside a scrollview and inflate everything in it manually. (the two textviews and the two listviews).
you can actually use the same code you wrote for your listviews to do that with some modifications.
It sounds like a lot of effort, but after doing it a few times i've noticed that it isnt. in some instances it even makes stuff easier.
On Tuesday, October 9, 2012 9:15:42 AM UTC+2, Jovish P wrote:
-- On Tuesday, October 9, 2012 9:15:42 AM UTC+2, Jovish P wrote:
In one of screen we want to come up with a desing like this
Textview
Listview
Textview
Listview
First we thought of putting everything inside a linear layout with vertical orientation and put that layout inside
a scroll view. Then we come to know that it is not a good idea. So right now what we are trying to do is
add header and footer for listview. Header view will be a text view and footer view will be a layout which conatins
a texview and listview. The problem what we are facing now is , we are not able to scroll the second listview which is in
footerview layout. Is it a good solution ? If not wht is the best way to do this ? Share your thoughts about this.
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