On Thu, Mar 18, 2010 at 9:46 PM, Andreas <andreas.bexell@gmail.com> wrote:
Curiously, no. Shorter code below:
mScrollView = new ScrollView(this);
mListView = new LinearLayout(this);
mScrollView.addView(mListView);
mListView.setOrientation(LinearLayout.VERTICAL);
Button button = new Button(this);
button.setText("OK");
LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.VERTICAL);
layout.addView(mScrollView);
layout.addView(button);
As the list view grows, the button will disappear outside the screen
and become unreachable. I was very surprised. ;)
Where are you setting the layout parameters and weights for the the views, if at all?
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking
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
To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
No comments:
Post a Comment