I haven't done this yet, but I've been thinking about it since I'll probably need to do it. I can think of three options: use only one list with the contents of all lists. You can make a ListAdapter that does that and inserts some kind of header.
This could probably be something very re-usable The other idea is to make a list of lists. But that sounds like asking for trouble.
I haven't done this yet, but I've been thinking about it since I'll probably need to do it. I can think of three options: use only one list with the contents of all lists. You can make a ListAdapter that does that and inserts some kind of header.
This could probably be something very re-usable. The other idea is to make a list of lists. But that sounds like asking for trouble.
Because I'm interested in that topic too and I tried to do the ListViews in a ListView approach for question stackoverflow. Com/questions/1526831/… (altough I haven't seen your answer before). Talking with the guys on #android-dev, putting ListViews in a ListView is even worse than putting them in a ScrollView.
(And so were my results. ) Because your post war written quite long time ago, have you tried the all in a list solution by now? – svens Oct 6 '09 at 20:31.
I had a similar problem save that I had two GridViews and one ListView to scroll. I solved it by manually setting the height of the ListViews and GridView: ListAdapter listAdapter = listView.getAdapter(); int rows = listAdapter.getCount() / columns; int height = 60 * rows; // Insert the general cell height plus the dividers. ViewGroup.
LayoutParams params = listView.getLayoutParams(); params. Height = height; listView. SetLayoutParams(params); listView.requestLayout(); Hope I could help someone.
Forward touch event from "touched" view to other views. All your views will be synchronized expand/collapsed too. OnTouchListener mOnTouch = new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { MotionEvent newEvent = MotionEvent.
Obtain(event); switch(event.getAction()){ case MotionEvent. ACTION_MOVE: if(mTouched == null){ mTouched = v; } mMovingFlag = true; break; case MotionEvent. ACTION_UP: if(mMovingFlag==false){ newEvent.
SetAction(MotionEvent. ACTION_CANCEL); } mMovingFlag = false; break; default: mMovingFlag = false; if(mTouched! = null && mTouched.
Equals(v)){ mTouched = null; } break; } if(mTouched == null || mTouched. Equals(v)){ int items = mLayoutWithListViews.getChildCount(); for(int list=0; list= v){ listView. OnTouchEvent(newEvent); } } } return false; } }.
Use expandable ListView. Chk my answer for a similar question here: stackoverflow.com/questions/1526831/andr....
It's completely possible that the lists will extend past the bottom edge of the screen, so I would need scrolling. I've tried using a ScrollView with a LinearLayout child, and putting my ListViews in the LinearView, but all of the ListViews lock to a fixed height with scroll bars. Using other kinds of Layouts means no scrolling.
Does anyone have any suggestions, or will I need to programmatically add the list items to some layout and hope for the best?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.