<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.drawerlayout.widget.DrawerLayout 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"
|
android:id="@+id/drawer_main"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
tools:context=".ui.HomeActivity">
|
|
<LinearLayout
|
android:id="@+id/main"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:orientation="vertical"
|
android:paddingTop="20dp">
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content">
|
|
<ImageView
|
android:id="@+id/imguserinto"
|
android:layout_width="18dp"
|
android:layout_height="22dp"
|
android:layout_marginStart="10dp"
|
android:layout_marginTop="30dp"
|
android:src="@mipmap/icon_nav_user"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="parent" />
|
|
<ImageView
|
android:layout_width="wrap_content"
|
android:layout_height="28dp"
|
android:layout_margin="10dp"
|
android:layout_marginTop="30dp"
|
android:adjustViewBounds="true"
|
android:scaleType="fitXY"
|
android:src="@drawable/gopostlog"
|
app:layout_constraintBottom_toBottomOf="@+id/imguserinto"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintTop_toTopOf="@+id/imguserinto" />
|
|
<ImageView
|
android:id="@+id/im_news"
|
android:layout_width="22dp"
|
android:layout_height="19dp"
|
android:layout_marginStart="10dp"
|
android:layout_marginEnd="10dp"
|
android:src="@mipmap/icon_nav_news"
|
app:layout_constraintBottom_toBottomOf="@+id/imguserinto"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintTop_toTopOf="@+id/imguserinto" />
|
|
<View
|
android:id="@+id/iv_unread"
|
android:layout_width="6dp"
|
android:layout_height="6dp"
|
android:background="@drawable/bg_red_4dp"
|
android:visibility="gone"
|
app:layout_constraintBottom_toTopOf="@+id/im_news"
|
app:layout_constraintEnd_toEndOf="@id/im_news" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
<androidx.core.widget.NestedScrollView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
app:layout_constraintTop_toBottomOf="@+id/imguserinto">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:gravity="center"
|
android:orientation="vertical">
|
|
<ImageView
|
android:id="@+id/img1"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginStart="10dp"
|
android:layout_marginTop="30dp"
|
android:layout_marginEnd="10dp"
|
android:adjustViewBounds="true"
|
android:scaleType="fitXY" />
|
|
<TextView
|
android:id="@+id/txt1"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:text="@string/专车"
|
android:textStyle="bold" />
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginHorizontal="10dp"
|
android:layout_marginTop="19dp"
|
android:orientation="horizontal">
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:gravity="center"
|
android:orientation="vertical">
|
|
<ImageView
|
android:id="@+id/img2"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:adjustViewBounds="true"
|
android:scaleType="fitXY" />
|
|
<TextView
|
android:id="@+id/txt2"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:text="@string/快件"
|
android:textStyle="bold" />
|
|
</LinearLayout>
|
|
<View
|
android:layout_width="10dp"
|
android:layout_height="1px"
|
android:visibility="gone"
|
tools:visibility="visible"/>
|
|
<LinearLayout
|
android:layout_width="0dp"
|
android:layout_height="wrap_content"
|
android:layout_weight="1"
|
android:gravity="center"
|
android:orientation="vertical"
|
android:visibility="gone"
|
tools:visibility="visible">
|
|
<ImageView
|
android:id="@+id/img3"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:adjustViewBounds="true"
|
android:scaleType="fitXY" />
|
|
<TextView
|
android:id="@+id/txt3"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="10dp"
|
android:text="@string/物流"
|
android:textStyle="bold" />
|
</LinearLayout>
|
</LinearLayout>
|
|
<LinearLayout
|
android:id="@+id/ll_ads"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:layout_marginTop="7dp"
|
android:orientation="vertical" />
|
</LinearLayout>
|
</androidx.core.widget.NestedScrollView>
|
</LinearLayout>
|
|
<include
|
layout="@layout/drawer_mine"
|
android:layout_width="260dp"
|
android:layout_height="match_parent"
|
android:layout_gravity="start"
|
android:background="@color/white" />
|
</androidx.drawerlayout.widget.DrawerLayout>
|