64 lines
2.1 KiB
XML
64 lines
2.1 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
|
||
|
<com.mcxtzhang.swipemenulib.SwipeMenuLayout 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"
|
||
|
android:clickable="true"
|
||
|
android:elevation="2dp"
|
||
|
app:ios="false"
|
||
|
app:leftSwipe="true">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:id="@+id/rootLayout"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="match_parent"
|
||
|
android:gravity="center_vertical"
|
||
|
android:orientation="horizontal"
|
||
|
android:padding="8dp">
|
||
|
|
||
|
<ImageView
|
||
|
android:id="@+id/iconView"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:src="@mipmap/ic_launcher" />
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginLeft="8dp"
|
||
|
android:orientation="vertical">
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/unitNameView"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:text="单位名称"
|
||
|
android:textSize="16dp" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/unitDescribeView"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="8dp"
|
||
|
android:text="单位描述" />
|
||
|
|
||
|
<TextView
|
||
|
android:id="@+id/unitTimeView"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_marginTop="8dp"
|
||
|
android:text="修改时间" />
|
||
|
|
||
|
|
||
|
</LinearLayout>
|
||
|
</LinearLayout>
|
||
|
|
||
|
<Button
|
||
|
android:id="@+id/delButton"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="match_parent"
|
||
|
android:text="@string/del_mod" />
|
||
|
|
||
|
|
||
|
</com.mcxtzhang.swipemenulib.SwipeMenuLayout>
|