Created
April 2, 2018 14:47
-
-
Save doanhpv-0200/c7454b1ef6a9613d376f3d2a9a3fbfa8 to your computer and use it in GitHub Desktop.
Swipe item for AndroidSwipeLayout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:background="@android:color/transparent"> | |
| <com.daimajia.swipe.SwipeLayout xmlns:swipe="http://schemas.android.com/apk/res-auto" | |
| android:id="@+id/swipe" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| swipe:leftEdgeSwipeOffset="0dp" | |
| swipe:rightEdgeSwipeOffset="0dp"> | |
| <LinearLayout | |
| android:id="@+id/bottom_left" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:gravity="center_vertical" | |
| android:weightSum="1"> | |
| <ImageView | |
| android:id="@+id/img1" | |
| android:layout_width="70dp" | |
| android:layout_height="36dp" | |
| android:layout_gravity="center_vertical" | |
| android:layout_weight="1" /> | |
| </LinearLayout> | |
| <LinearLayout | |
| android:id="@+id/bottom_right" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:gravity="center_vertical" | |
| android:weightSum="1"> | |
| <ImageView | |
| android:id="@+id/img2" | |
| android:layout_width="70dp" | |
| android:layout_height="36dp" | |
| android:layout_gravity="center_vertical" | |
| android:layout_weight="1" /> | |
| </LinearLayout> | |
| <LinearLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content"> | |
| <TextView | |
| android:id="@+id/text_view" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" /> | |
| </LinearLayout> | |
| </com.daimajia.swipe.SwipeLayout> | |
| </LinearLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment