Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use custom divider #92

Closed
AndreaScn opened this issue Dec 23, 2015 · 0 comments
Closed

Can't use custom divider #92

AndreaScn opened this issue Dec 23, 2015 · 0 comments

Comments

@AndreaScn
Copy link

I tried to use custom divider in my xml file like:

<com.baoyz.swipemenulistview.SwipeMenuListView
        android:id="@+id/listView"
        android:layout_alignParentStart="false"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:layout_alignWithParentIfMissing="true"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="false"
        android:longClickable="false"
        android:layout_gravity="center"
        android:divider="@drawable/list_divider"/>

and I defined my list_divider in drawable/list_divider but it seems not working.
I also tried to change divider color and height in this way:

<com.baoyz.swipemenulistview.SwipeMenuListView
        android:id="@+id/listView"
        android:divider="@color/colorPrimaryDark"
        android:dividerHeight="2dip"
        android:layout_alignParentStart="false"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"
        android:layout_alignWithParentIfMissing="true"
        android:layout_alignParentRight="true"
        android:layout_alignParentEnd="false"
        android:longClickable="false"
        android:layout_gravity="center" />

but both still not working.
It is strange since SwipeMenuListView extends Listview.
Any clue?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant