ListView isn't really meant to handle that type of UI with editable
entries, as it manages the selection state of the items directly. It's
designed to handle long lists of items that don't take focus
themselves.

The contact editing screen is using a vertical LinearLayout wrapped in
a ScrollView, containing horizontal LinearLayours of the EditTexts and
Buttons. When using a ScrollView you can set
android:fillViewport="true" in your layout file to get it to fill up
the entire screen, which is how contacts pushes the buttons to the
bottom.

-Jeff

On Wed, Sep 3, 2008 at 1:19 PM, istv <[EMAIL PROTECTED]> wrote:
>
> Hello everyone,
>  I had problems today concerning ListView/ListAdapter... I'd like to
> get an activity that is very similar to the "New contact" one in v0.9.
> Basically a ListView, that is expandable by custom rows containing
> EditText, RateBars, etc..
> I tried by extending BaseAdapter's onView (the simple way by inflating
> layout-xmls per row), which actually worked, but nevertheless, it
> raised a couple of problems which I want to address here.
>
> 1. Whenever I "touch" an EditText and start typing, the focus jumps to
> the respective EditText of the first row that has the same inflated
> listitem-layout. Navigating with keys works.
>
> 2. Changing orientation of the device in emulator (Ctrl+F12) causes
> the EditTexts to lose all changes made. Do I really need to save their
> states manually?
>
> 3. How to get a row that sticks to the bottom (the two buttons in "New
> contact")? It is apparently achieved by an additional row containing
> nothing.
>
>
> So, are there any solutions around that I did not see yet? I had a
> look at Mark Murphy's blog, and also some of the tutorials on
> anddev.org..
>
> Thanks & Cheers,
>  István
> >
>

--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to