|
@@ -1,38 +1,38 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
- xmlns:tools="http://schemas.android.com/tools">
|
|
|
+ xmlns:tools="http://schemas.android.com/tools" >
|
|
|
|
|
|
- <data>
|
|
|
+ <data >
|
|
|
|
|
|
- </data>
|
|
|
+ <variable
|
|
|
+ name="vm"
|
|
|
+ type="com.quansu.heifengwuliu.vmodel.AddressVModel" />
|
|
|
+
|
|
|
+ </data >
|
|
|
|
|
|
<LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
- android:orientation="vertical">
|
|
|
+ android:orientation="vertical" >
|
|
|
|
|
|
<com.quansu.heifengwuliu.widget.SearchView
|
|
|
android:id="@+id/search"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content">
|
|
|
-
|
|
|
- </com.quansu.heifengwuliu.widget.SearchView>
|
|
|
-
|
|
|
-
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ app:vm="@{vm}" />
|
|
|
|
|
|
<FrameLayout
|
|
|
android:id="@+id/lay_body"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="0dp"
|
|
|
android:layout_marginTop="8dp"
|
|
|
- android:layout_weight="1">
|
|
|
-
|
|
|
+ android:layout_weight="1" >
|
|
|
|
|
|
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
|
|
android:id="@+id/refresh_layout"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:layout_height="match_parent" >
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
android:id="@+id/recycler_view"
|
|
@@ -41,8 +41,7 @@
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
tools:listitem="@layout/item_address" />
|
|
|
|
|
|
- </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>
|
|
|
-
|
|
|
+ </androidx.swiperefreshlayout.widget.SwipeRefreshLayout >
|
|
|
|
|
|
<com.quansu.heifengwuliu.view.CircleTextView
|
|
|
android:id="@+id/tv_tip"
|
|
@@ -54,8 +53,7 @@
|
|
|
android:textColor="@color/white"
|
|
|
android:textSize="18sp"
|
|
|
android:visibility="gone"
|
|
|
- tools:visibility="visible">
|
|
|
- </com.quansu.heifengwuliu.view.CircleTextView>
|
|
|
+ tools:visibility="visible" ></com.quansu.heifengwuliu.view.CircleTextView >
|
|
|
|
|
|
<com.quansu.heifengwuliu.view.SideBar
|
|
|
android:id="@+id/sidebar"
|
|
@@ -70,11 +68,9 @@
|
|
|
android:paddingRight="5dp"
|
|
|
app:sb_tv_color="#0074e6"
|
|
|
app:sb_tv_gap="5dp"
|
|
|
- app:sb_tv_size="15sp">
|
|
|
- </com.quansu.heifengwuliu.view.SideBar>
|
|
|
+ app:sb_tv_size="15sp" ></com.quansu.heifengwuliu.view.SideBar >
|
|
|
|
|
|
-
|
|
|
- </FrameLayout>
|
|
|
+ </FrameLayout >
|
|
|
|
|
|
<TextView
|
|
|
android:id="@+id/tv_add"
|
|
@@ -84,11 +80,10 @@
|
|
|
android:gravity="center"
|
|
|
android:text="添加新地址"
|
|
|
android:textColor="@color/white"
|
|
|
- android:textSize="@dimen/sp_16">
|
|
|
-
|
|
|
- </TextView>
|
|
|
+ android:textSize="@dimen/sp_16" >
|
|
|
|
|
|
+ </TextView >
|
|
|
|
|
|
- </LinearLayout>
|
|
|
+ </LinearLayout >
|
|
|
|
|
|
-</layout>
|
|
|
+</layout >
|