<?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">
|
|
<data>
|
<variable
|
name="viewModel"
|
type="com.application.zhangshi_app_android.ui.function.ContactsImportActivityViewModel" />
|
</data>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:id="@+id/parentLayout"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="?attr/pageBackgroundColor"
|
android:orientation="vertical"
|
>
|
<com.android.app_base.widget.ExtendTitleBar
|
android:id="@+id/titleBar"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:layout_constraintTop_toTopOf="parent"
|
app:leftIcon="@drawable/ic_back"
|
app:titleGravity="left"
|
app:title="通讯录导入"
|
>
|
<FrameLayout
|
android:layout_width="24dp"
|
android:layout_height="24dp"
|
android:layout_marginHorizontal="16dp"
|
android:layout_gravity="center_vertical|end"
|
>
|
<ImageView
|
android:id="@+id/iv_operate"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_gravity="center"
|
android:visibility="gone"
|
android:background="@drawable/ic_operate_finish"
|
/>
|
</FrameLayout>
|
|
</com.android.app_base.widget.ExtendTitleBar>
|
<LinearLayout
|
android:id="@+id/layout_data_null"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:orientation="vertical"
|
android:gravity="center"
|
android:visibility="gone"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toBottomOf="@+id/titleBar">
|
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:background="@drawable/img_data_null"
|
/>
|
<TextView
|
android:id="@+id/tv_data_null"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="18dp"
|
android:text="手机通讯录暂无数据"
|
android:textSize="14sp"
|
android:textColor="#73000000"
|
/>
|
</LinearLayout>
|
|
<com.scwang.smart.refresh.layout.SmartRefreshLayout
|
android:id="@+id/refreshLayout"
|
android:layout_width="match_parent"
|
android:layout_height="0dp"
|
app:layout_constraintTop_toBottomOf="@+id/titleBar"
|
app:layout_constraintBottom_toBottomOf="parent"
|
>
|
<com.scwang.smart.refresh.header.MaterialHeader
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
/>
|
<androidx.recyclerview.widget.RecyclerView
|
android:id="@+id/recyclerView"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
tools:itemCount="20"
|
tools:listitem="@layout/item_contacts_detail"
|
/>
|
|
<com.scwang.smart.refresh.footer.BallPulseFooter
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"/>
|
</com.scwang.smart.refresh.layout.SmartRefreshLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</layout>
|