I am trying to create an expandable list of sub-menus each one
containing a text field, an edittext box and a button to submit
whatever you just typed in, at which point the entered text gets
appended onto the end of whatever was previously in the text field.

I followed one of the examples that comes with the Android SDK (Views/
Lists/6. ListAdapted Collapsed) to create what I wanted and it >seems<
to work with a few minor bugs that I find rather annoying: for
example, if you enter a lot of data into the text fields and the whole
thing runs off the screen (down), the scrolling acts rather weird; in
addition, if you scroll down an expand one of the menu items, it
sometimes does not come up with the right View (?!?!).

I am really not sure what's going, but I figured converting the whole
thing from hard-coded Views into an XML file would be somewhat
beneficial to figuring out the problem.

A quick run down of my structure:
the main class extends ListActivity
within it, are 2 classes - one extends BaseAdapter, the other extends
LinearLayout (and is in turn used by the BaseAdapter one)
(I just ripped whatever little I could understand off the example)

I ran into a problem - when I try to setContentView(ID) in the
LinearLayout constructor, I get the following error:
ERROR/AndroidRuntime(4238): java.lang.IllegalStateException:
addView(View, LayoutParams) is not supported in AdapterView

Not sure how everything works in Android yet, so I need help setting
this thing up - any suggestions as to what I am doing wrong (I am sure
most everything) are welcome.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to