Using height = fill_parent / match_parent for list view items, as your code
does, seems weird.
I usually use wrap_content, combined
with android:minHeight="?android:attr/listPreferredItemHeight" (or even
android:minHeight="48dp").
For the minHeight to work, you've got to call inflate() in your adapter's
getView() with the parent view, so it can create the appropriate layout
parameter object, like this:
Bad:
convertView = mInflater.inflate(R.layout.contact_entry2, null);
Good:
convertView = mInflater.inflate(R.layout.contact_entry2,
parent, false);
-- K
2013/1/2 Etienne <[email protected]>
> Originally Posted :
> http://stackoverflow.com/questions/14048913/autocompletetextview-behaves-differently-in-different-versions-of-android
>
> --
> 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]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
--
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en