<?xml version="1.0" encoding="utf-8"?>
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@color/white"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
tools:mContext="cn.sinata.xldutils.activity.WebViewActivity">
|
<ScrollView
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:layout_above="@id/cl_bottom"
|
android:scrollbars="none">
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_title"
|
tools:text="这是消息标题...这是消息标题...这是消息标题...这是消
|
息标题...这是消息标题...这是消息标题..."
|
android:layout_margin="11dp"
|
android:textSize="15sp"
|
android:visibility="gone"
|
android:textColor="@color/textColor"
|
android:textStyle="bold"/>
|
<TextView
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:id="@+id/tv_time"
|
android:visibility="gone"
|
android:text="2019-05-02 10:48"
|
android:textSize="12sp"
|
android:textColor="@color/textColor99"
|
android:layout_marginStart="11dp"/>
|
<WebView
|
android:id="@+id/webView"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"/>
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:id="@+id/cl_bottom_1"
|
android:layout_width="match_parent"
|
android:layout_alignParentBottom="true"
|
android:layout_marginBottom="10dp"
|
android:visibility="gone"
|
android:layout_height="wrap_content">
|
<TextView
|
android:layout_width="144dp"
|
android:layout_height="wrap_content"
|
app:layout_constraintBaseline_toBaselineOf="@id/tv_ok_1"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toStartOf="@id/tv_ok_1"
|
android:id="@+id/tv_cancel_1"
|
android:gravity="center"
|
android:paddingVertical="10dp"
|
android:textStyle="bold"
|
android:textSize="14sp"
|
android:textColor="@color/white"
|
android:background="@drawable/bg_gradient_main"
|
android:text="取消"/>
|
|
<TextView
|
android:layout_width="144dp"
|
android:layout_height="wrap_content"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintStart_toEndOf="@id/tv_cancel_1"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_marginBottom="14dp"
|
android:id="@+id/tv_ok_1"
|
android:paddingVertical="10dp"
|
android:textStyle="bold"
|
android:textSize="14sp"
|
android:textColor="@color/white"
|
android:gravity="center"
|
android:text="同意"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</LinearLayout>
|
</ScrollView>
|
<androidx.constraintlayout.widget.ConstraintLayout
|
android:id="@+id/cl_bottom"
|
android:layout_width="match_parent"
|
android:layout_alignParentBottom="true"
|
android:visibility="gone"
|
android:layout_marginBottom="10dp"
|
android:layout_height="wrap_content">
|
<TextView
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
app:layout_constraintBaseline_toBaselineOf="@id/tv_ok"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toStartOf="@id/tv_ok"
|
android:id="@+id/tv_cancel"
|
android:gravity="center"
|
android:paddingVertical="10dp"
|
android:textSize="14sp"
|
android:textColor="@color/white"
|
android:layout_marginHorizontal="30dp"
|
android:background="@drawable/bg_red_20dp"
|
android:text="关闭"/>
|
|
<TextView
|
android:layout_width="144dp"
|
android:layout_height="wrap_content"
|
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintStart_toEndOf="@id/tv_cancel"
|
app:layout_constraintEnd_toEndOf="parent"
|
android:layout_marginBottom="14dp"
|
android:id="@+id/tv_ok"
|
android:visibility="gone"
|
android:paddingVertical="10dp"
|
android:textStyle="bold"
|
android:textSize="14sp"
|
android:textColor="@color/white"
|
android:gravity="center"
|
android:text="确认"/>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
</RelativeLayout>
|