I recently started using genymotion instead of the classic Android virtual device, but I have some problems with it. When I try to run my application, I got this error.
Can't convert to dimension: type=0x1
I come from LayoutInflater. When I run it in Genymotion, it says that there is some layout that has a bad type. Below are two screenshots from android studio. The first was performed when the application was launched on Nexus 4, and the second in Genymotion. 

Both should run Jelly Bean, the only difference is that Genymotion is on API 16, and Nexus 4 works up to version 4.2.2, so API 17 ..
Problems arise from my custom list view adapter β from the getView method, so I think it should be associated with one of these layouts. (I have two different types of list items)
list_heading.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:id="@+id/listViewHeaderText" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingLeft="8dp" android:paddingTop="10dp" android:paddingBottom="3dp" android:text="NacionΓ‘le" android:textAppearance="?android:attr/listSeparatorTextViewStyle" android:textColor="@color/main_cvut"/> <RelativeLayout android:id="@+id/listViewHeaderLine" android:layout_width="fill_parent" android:layout_height="1dip" android:background="@color/main_cvut"/> </LinearLayout>
list_item.xml
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/listItem" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@drawable/list_item_layout" android:clickable="true" android:focusable="true" android:paddingTop="?android:attr/listPreferredItemPaddingStart" android:minHeight="?android:attr/listPreferredItemHeight"> <TextView android:id="@+id/itemTitle" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Title" android:paddingRight="?android:attr/listPreferredItemPaddingRight" android:paddingLeft="?android:attr/listPreferredItemPaddingLeft" android:textAppearance="?android:attr/textAppearanceMedium"/> <TextView android:id="@+id/itemDescription" android:textColor="@android:color/darker_gray" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="description" android:paddingRight="?android:attr/listPreferredItemPaddingRight" android:paddingLeft="?android:attr/listPreferredItemPaddingLeft" android:textAllCaps="true" android:textAppearance="?android:attr/textAppearanceSmall" android:layout_marginBottom="?android:attr/listPreferredItemPaddingEnd" android:paddingBottom="?android:attr/listPreferredItemPaddingRight" android:layout_below="@+id/itemTitle"/> <ImageView android:id="@+id/itemIcon" android:layout_width="32dp" android:layout_height="32dp" android:layout_alignParentEnd="true" android:layout_marginRight="16dp" android:layout_centerVertical="true" android:layout_alignParentStart="true"/> <RelativeLayout android:id="@+id/itemBottomLine" android:layout_width="fill_parent" android:layout_height="1dp" android:layout_alignParentBottom="true" android:layout_marginTop="?android:attr/listPreferredItemPaddingEnd" android:background="#b5b5b5" android:layout_alignParentEnd="false"/> </RelativeLayout>
I tried to remove all the mentioned scroll fields, but that did not affect ll .. I also tried to run it in the standard Android emulator with API 16, and it also does not work. Please, could you say which part of this code is incompatible with this version?
source share