SubwayTooter-Android-App/app/src/main/res/layout/lv_column_list.xml

121 lines
4.6 KiB
XML
Raw Normal View History

2017-04-23 07:42:09 +02:00
<?xml version="1.0" encoding="utf-8"?>
<com.woxthebox.draglistview.swipe.ListSwipeItem
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="wrap_content"
app:leftViewId="@+id/item_left"
app:rightViewId="@+id/item_right"
app:swipeViewId="@+id/item_layout">
<TextView
android:id="@+id/item_left"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignBottom="@+id/item_layout"
android:layout_alignTop="@+id/item_layout"
android:background="#0088ff"
2017-04-27 11:15:14 +02:00
android:gravity="center"
2017-04-29 22:51:04 +02:00
android:paddingEnd="12dp"
android:paddingStart="12dp"
2017-04-23 07:42:09 +02:00
android:text="@string/app_name"
android:textColor="@android:color/white"
android:textSize="20sp"/>
<TextView
android:id="@+id/item_right"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignBottom="@+id/item_layout"
android:layout_alignTop="@+id/item_layout"
2017-04-27 11:15:14 +02:00
android:background="?attr/colorColumnListDeleteBackground"
2017-04-29 22:51:04 +02:00
android:gravity="center_vertical"
android:paddingEnd="12dp"
android:paddingStart="12dp"
2017-04-23 07:42:09 +02:00
android:text="@string/delete"
2017-04-27 11:15:14 +02:00
android:textColor="?attr/colorColumnListDeleteText"
2017-04-23 07:42:09 +02:00
android:textSize="20sp"/>
<LinearLayout
android:id="@id/item_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-04-27 11:15:14 +02:00
android:background="@drawable/column_list_selector"
2017-04-23 07:42:09 +02:00
android:gravity="center_vertical"
android:orientation="horizontal"
2017-04-29 22:51:04 +02:00
android:paddingEnd="12dp"
android:paddingStart="12dp"
>
2017-04-23 07:42:09 +02:00
<!-- minHeight の代わりにViewで賄う -->
<View
android:layout_width="0dp"
android:layout_height="48dp"
/>
<ImageView
android:id="@+id/ivDragHandle"
android:layout_width="48dp"
android:layout_height="match_parent"
2017-04-29 22:51:04 +02:00
android:layout_marginBottom="4dp"
android:layout_marginEnd="6dp"
android:layout_marginTop="4dp"
2017-04-27 11:15:14 +02:00
android:background="?attr/colorColumnListDragHandleBackground"
2017-04-23 07:42:09 +02:00
android:contentDescription="@string/drag_handle"
android:scaleType="center"
android:src="@drawable/ic_order"
android:tint="?attr/colorVectorDrawable"
2017-04-23 07:42:09 +02:00
/>
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical"
>
<TextView
android:id="@+id/tvAccess"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end"
2017-04-27 11:15:14 +02:00
android:textColor="?attr/colorColumnListItemText"
2017-04-29 22:51:04 +02:00
android:textSize="14sp"
2017-04-23 07:42:09 +02:00
/>
2017-04-29 22:51:04 +02:00
<LinearLayout
2017-04-23 07:42:09 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-04-29 22:51:04 +02:00
android:orientation="horizontal"
android:gravity="center_vertical"
>
<ImageView
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginEnd="4dp"
android:id="@+id/ivColumnIcon"
android:importantForAccessibility="no"
android:tint="?attr/colorVectorDrawable"
/>
2017-04-29 22:51:04 +02:00
<TextView
android:id="@+id/tvName"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textSize="18sp"
/>
<ImageView
android:id="@+id/ivBookmark"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_marginStart="6dp"
android:contentDescription="@string/last_selection"
android:scaleType="center"
android:src="@drawable/ic_bookmark"
android:tint="?attr/colorVectorDrawable"
2017-04-29 22:51:04 +02:00
/>
</LinearLayout>
2017-04-23 07:42:09 +02:00
</LinearLayout>
</LinearLayout>
</com.woxthebox.draglistview.swipe.ListSwipeItem>