356 lines
19 KiB
XML
356 lines
19 KiB
XML
<?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"
|
|
tools:context=".fragment.home.HomeFragment">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="click"
|
|
type="com.ttstd.dialer.fragment.home.HomeFragment.BtnClick" />
|
|
</data>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="2"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_time"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:shadowColor="#80000000"
|
|
android:shadowDx="2"
|
|
android:shadowDy="2"
|
|
android:shadowRadius="2"
|
|
android:text="00:00"
|
|
android:textColor="@color/black"
|
|
android:textSize="55sp"
|
|
android:textStyle="bold"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
tools:text="00:00" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="4"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:onClick="@{click::openContact}"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.shehuan.niv.NiceImageView
|
|
android:id="@+id/niceImageView1"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/ic_contact"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="联系人"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/home_item_text_size"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toEndOf="@+id/niceImageView1"
|
|
app:layout_constraintStart_toStartOf="@+id/niceImageView1"
|
|
app:layout_constraintTop_toBottomOf="@+id/niceImageView1" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:onClick="@{click::openSettings}"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.shehuan.niv.NiceImageView
|
|
android:id="@+id/niceImageView2"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/ic_settings"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="设置"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/home_item_text_size"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toEndOf="@+id/niceImageView2"
|
|
app:layout_constraintStart_toStartOf="@+id/niceImageView2"
|
|
app:layout_constraintTop_toBottomOf="@+id/niceImageView2" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:onClick="@{click::openDouyin}"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.shehuan.niv.NiceImageView
|
|
android:id="@+id/niceImageView3"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/ic_douyin"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="微信"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/home_item_text_size"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toEndOf="@+id/niceImageView3"
|
|
app:layout_constraintStart_toStartOf="@+id/niceImageView3"
|
|
app:layout_constraintTop_toBottomOf="@+id/niceImageView3" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:onClick="@{click::openWeixin}"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.shehuan.niv.NiceImageView
|
|
android:id="@+id/niceImageView4"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/ic_weixin"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="抖音"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/home_item_text_size"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toEndOf="@+id/niceImageView4"
|
|
app:layout_constraintStart_toStartOf="@+id/niceImageView4"
|
|
app:layout_constraintTop_toBottomOf="@+id/niceImageView4" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.shehuan.niv.NiceImageView
|
|
android:id="@+id/niceImageView5"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/home_item_text_size"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toEndOf="@+id/niceImageView5"
|
|
app:layout_constraintStart_toStartOf="@+id/niceImageView5"
|
|
app:layout_constraintTop_toBottomOf="@+id/niceImageView5" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:onClick="@{click::openAppList}"
|
|
android:orientation="horizontal">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.shehuan.niv.NiceImageView
|
|
android:id="@+id/niceImageView6"
|
|
android:layout_width="100dp"
|
|
android:layout_height="100dp"
|
|
android:adjustViewBounds="true"
|
|
android:scaleType="centerCrop"
|
|
android:src="@drawable/ic_app"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="8dp"
|
|
android:maxLines="1"
|
|
android:singleLine="true"
|
|
android:text="应用"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/home_item_text_size"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toEndOf="@+id/niceImageView6"
|
|
app:layout_constraintStart_toStartOf="@+id/niceImageView6"
|
|
app:layout_constraintTop_toBottomOf="@+id/niceImageView6" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</FrameLayout>
|
|
</layout> |