it-rico / ListItemMenu

一个简单的仿IOS的列表项滑动菜单

Home Page:https://github.com/zarics/ListItemMenu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ListItemMenu

一个简单的仿IOS的列表项滑动菜单。
顺手做出来的小东西,就分享给大家了。 PS:唉,半年才开源一个小东西,看来我实在是太懒了。

仿iOS列表项滑动菜单:

1.滑动出现菜单,越界阻尼效果;
2.删除列表项效果;

使用示例

<zrc.widget.listitemmenu.ItemMenuView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <TextView
        android:id="@+id/delete"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:padding="20dp"
        android:text="删除"
        android:textColor="#ffffffff"
        android:textSize="20sp"
        android:background="#ffcc2500"/>
    <TextView
        android:id="@+id/info"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:padding="20dp"
        android:text="信息"
        android:textColor="#ffffffff"
        android:textSize="20sp"
        android:background="#ff308dff"/>
	<!-- 最后一项为列表项,其余为菜单项 -->
    <TextView
        android:id="@+id/item"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:padding="20dp"
        android:textSize="20sp"
        android:background="#ffffff"/>

</zrc.widget.listitemmenu.ItemMenuView>

##Screenshots Screenshot

About

一个简单的仿IOS的列表项滑动菜单

https://github.com/zarics/ListItemMenu


Languages

Language:Java 100.0%