Can't use custom attributes in XML
Closed this issue · 1 comments
loeschg commented
I have the following layout
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background_gray"
android:focusableInTouchMode="true"
>
<it.sephiroth.android.library.widget.HListView
android:id="@+id/storefront_gallery_list"
android:layout_width="match_parent"
android:layout_height="@dimen/gallery_image_side"
android:divider="@android:color/transparent"
app:dividerWidth="@dimen/spacing_normal"
android:paddingTop="@dimen/spacing_normal"
android:background="@color/background_gray"
/>
</RelativeLayout>
I'm no longer able to compile this. I get the following Gradle error:
Output:
/Users/user/dev/mobile/test-project/TestProj/build/res/all/debug/layout/activity_test.xml:123: error: No resource identifier found for attribute 'dividerWidth' in package 'com.test.testproj'
There seems to be an issue with
app:dividerWidth="@dimen/spacing_normal"
and
xmlns:app="http://schemas.android.com/apk/res-auto"
Should I be including that a different way? I ended up having to programmatically set the dividerWidth attribute. This started happening not too long ago. I had to clean my gradle cache ~/.gradle
and maven cache ~/.m2
for it to manifest itself on my local machine in case that's of relevance.
sephiroth74 commented
the attributes have changed. check the hlv_attrs for the complete list