android:layout_height="match_parent" in list item gets ignored on API<11 -


i have simple listview showing content. there real content view @+id/conetnt , view @+id/service_disabled show fancy background in case item disabled. background of disabled view should painted on top of content. that's reason not using background state selector content view.

the height of content view differs item item. want disabled view height same height of content view.

but no matter try, on api<11, disabled view height match_parent gets ignored. disabled view have little height. on api>=11 fine.

my list item layout:

<?xml version="1.0" encoding="utf-8"?> <framelayout xmlns:android="http://schemas.android.com/apk/res/android"                 xmlns:app="http://schemas.android.com/apk/res-auto"                 android:layout_width="match_parent"                 android:layout_height="match_parent">      <linearlayout android:id="@+id/content"                   android:layout_width="match_parent"                   android:layout_height="match_parent"                   android:gravity="center_vertical"                   android:orientation="horizontal"                   android:padding="@dimen/service_item_padding">          <!-- views... -->     </linearlayout>      <view android:id="@+id/service_disabled"           android:layout_width="match_parent"           android:layout_height="match_parent"           android:background="@drawable/bg_disabled_service_repeat"/>  </framelayout> 

any ideas how fix on api<11?

btw: minsdk=8, targetsdk=18

it's working fine on n4 , tf101 running both android-17. it's broken on htc g2 running android-10.

think of it: parent of listview item be, , height? making list view item equal parent height make whole list view useless.

you want list row layout have height of wrap_content.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -