-
-
Save iPaulPro/3b1742403ea6f27abbb4 to your computer and use it in GitHub Desktop.
List item with drag control (handle)
This file contains 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"?> | |
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:id="@+id/item" | |
android:layout_width="match_parent" | |
android:layout_height="?listPreferredItemHeight" | |
android:clickable="true" | |
android:focusable="true" | |
android:foreground="?selectableItemBackground"> | |
<TextView | |
android:id="@+id/text" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_gravity="center_vertical" | |
android:layout_marginLeft="16dp" | |
android:textAppearance="?android:attr/textAppearanceMedium" /> | |
<ImageView | |
android:id="@+id/handle" | |
android:layout_width="?listPreferredItemHeight" | |
android:layout_height="match_parent" | |
android:layout_gravity="center_vertical|right" | |
android:scaleType="center" | |
android:src="@drawable/ic_reorder_grey_500_24dp" /> | |
</FrameLayout> |
Author
iPaulPro
commented
Jul 22, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment