share_select_dialog.xml 3.08 KB
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@color/white"
    android:fitsSystemWindows="false"
    android:paddingTop="20dp">

    <LinearLayout
        android:id="@+id/share_wechat"
        style="@style/share.layout.item"
        app:layout_constraintStart_toStartOf="parent"
        tools:ignore="MissingConstraints">

        <ImageView
            style="@style/share.item.icon"
            android:src="@mipmap/icon_wechat"
            tools:ignore="MissingConstraints" />

        <TextView
            style="@style/share.item.text"
            android:text="分享至微信"
            tools:ignore="MissingConstraints" />
    </LinearLayout>

    <LinearLayout
        android:id="@+id/share_pengyouquan"
        style="@style/share.layout.item"
        app:layout_constraintBottom_toBottomOf="@+id/share_wechat"
        app:layout_constraintStart_toEndOf="@+id/share_wechat"
        app:layout_constraintTop_toTopOf="@+id/share_wechat"
        tools:ignore="MissingConstraints">

        <ImageView
            style="@style/share.item.icon"
            android:src="@mipmap/icon_pengyouquan"
            tools:ignore="MissingConstraints" />

        <TextView
            style="@style/share.item.text"
            android:text="分享至朋友圈"
            tools:ignore="MissingConstraints" />
    </LinearLayout>

    <LinearLayout
        android:id="@+id/share_qq"
        style="@style/share.layout.item"
        app:layout_constraintBottom_toBottomOf="@+id/share_pengyouquan"
        app:layout_constraintStart_toEndOf="@+id/share_pengyouquan"
        app:layout_constraintTop_toTopOf="@+id/share_pengyouquan"
        tools:ignore="MissingConstraints">

        <ImageView
            style="@style/share.item.icon"
            android:src="@mipmap/icon_qq"
            tools:ignore="MissingConstraints" />

        <TextView
            style="@style/share.item.text"
            android:text=" 分享至QQ "
            tools:ignore="MissingConstraints" />
    </LinearLayout>


    <View
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:background="#999999"
        app:layout_constraintBottom_toTopOf="@+id/share_cancel"
        app:layout_constraintEnd_toEndOf="@+id/share_cancel"
        app:layout_constraintStart_toStartOf="@+id/share_cancel"
        tools:ignore="MissingConstraints" />

    <TextView
        android:id="@+id/share_cancel"
        style="@style/share.cancel.text"
        android:layout_height="60dp"
        android:layout_marginTop="150dp"
        android:text="取消"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/share_wechat"
        tools:ignore="MissingConstraints" />


</androidx.constraintlayout.widget.ConstraintLayout>