The first one is SwipeLayout that extends the FrameLayout. You can specify the attributes from a layout XML like:
<com.scott.swipe.SwipeLayout 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="150dp"
app:swipeOrientation="horizontal"
app:swipeStatusPosition="0.5">
<FrameLayout
android:layout_width="200dp"
android:layout_height="100dp"
android:background="#aaa"
app:layout_itemType="start_item"/>
<FrameLayout
android:id="@+id/end_item"
android:layout_width="200dp"
android:layout_height="50dp"
android:layout_gravity="end"
android:background="#faf"
app:layout_itemType="end_item"/>
<FrameLayout
android:id="@+id/swipe_item"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#afa"
app:layout_itemType="swipe_item"/>
</com.scott.swipe.SwipeLayout>
-
swipeOrientation
- SwipeOrientation control swipe direction. Possible values are:
- horizontal (default)
- vertical
- SwipeOrientation control swipe direction. Possible values are:
-
swipeHandler
- SwipeHandler is full name of class that is instance of EndSwipeHandler. For example, when finger lift from screen, SwipeSnapHandler is sticky to edge.
-
swipeStatusPosition
- The attribute is create to swipeHandler.
- float
- dimen
- The attribute is create to swipeHandler.
- layout_itemType
- These indicate the type of child view
- none (default)
- swipe_view
- start_menu
- end_menu
- These indicate the type of child view
Please see LICENSE