You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
178 lines
7.8 KiB
178 lines
7.8 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
~ This file is part of FYReader.
|
|
~ FYReader is free software: you can redistribute it and/or modify
|
|
~ it under the terms of the GNU General Public License as published by
|
|
~ the Free Software Foundation, either version 3 of the License, or
|
|
~ (at your option) any later version.
|
|
~
|
|
~ FYReader is distributed in the hope that it will be useful,
|
|
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
~ GNU General Public License for more details.
|
|
~
|
|
~ You should have received a copy of the GNU General Public License
|
|
~ along with FYReader. If not, see <https://www.gnu.org/licenses/>.
|
|
~
|
|
~ Copyright (C) 2020 - 2022 fengyuecanzhu
|
|
-->
|
|
|
|
<com.kongzue.dialogx.util.views.DialogXBaseRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:id="@+id/box_root"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="@color/black20"
|
|
android:orientation="vertical">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.kongzue.dialogx.util.views.MaxRelativeLayout
|
|
android:id="@+id/bkg"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:layout_marginLeft="35dp"
|
|
android:layout_marginRight="35dp"
|
|
android:background="@drawable/rect_dialogx_material_bkg_light"
|
|
android:elevation="27dp">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:clickable="true"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/txt_dialog_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:gravity="center_vertical"
|
|
android:paddingLeft="20dp"
|
|
android:paddingTop="15dp"
|
|
android:paddingRight="20dp"
|
|
android:paddingBottom="15dp"
|
|
android:text="Title"
|
|
android:textColor="@color/black"
|
|
android:textSize="21dp" />
|
|
|
|
<ScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:overScrollMode="never">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/txt_dialog_tip"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginRight="20dp"
|
|
android:text="This is content text."
|
|
android:textColor="@color/black70"
|
|
android:textSize="16dp" />
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/box_custom"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone" />
|
|
|
|
<EditText
|
|
android:id="@+id/txt_input"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginRight="20dp"
|
|
android:inputType="text"
|
|
android:maxLines="1"
|
|
android:paddingTop="10dp"
|
|
android:paddingBottom="10dp"
|
|
android:scrollbars="vertical"
|
|
android:text=""
|
|
android:textColor="@color/black90"
|
|
android:textSize="18dp"
|
|
android:theme="@style/DialogXCompatThemeLight" />
|
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/box_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_horizontal"
|
|
android:layout_marginTop="5dp"
|
|
android:gravity="right|center_vertical"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="10dp"
|
|
android:paddingTop="10dp"
|
|
android:paddingRight="10dp"
|
|
android:paddingBottom="10dp">
|
|
|
|
<TextView
|
|
android:id="@+id/btn_selectOther"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="36dp"
|
|
android:background="@drawable/button_dialogx_material_light"
|
|
android:clickable="true"
|
|
android:gravity="center"
|
|
android:paddingLeft="15dp"
|
|
android:paddingRight="15dp"
|
|
android:text="Other"
|
|
android:textColor="@color/colorAccent"
|
|
android:textSize="15dp"
|
|
android:visibility="gone" />
|
|
|
|
<Space
|
|
android:id="@+id/space_other_button"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1" />
|
|
|
|
<TextView
|
|
android:id="@+id/btn_selectNegative"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="36dp"
|
|
android:background="@drawable/button_dialogx_material_light"
|
|
android:clickable="true"
|
|
android:gravity="center"
|
|
android:paddingLeft="15dp"
|
|
android:paddingRight="15dp"
|
|
android:text="Cancel"
|
|
android:textColor="@color/colorAccent"
|
|
android:textSize="15dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/btn_selectPositive"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="36dp"
|
|
android:background="@drawable/button_dialogx_material_light"
|
|
android:clickable="true"
|
|
android:gravity="center"
|
|
android:paddingLeft="15dp"
|
|
android:paddingRight="15dp"
|
|
android:text="OK"
|
|
android:textColor="@color/colorAccent"
|
|
android:textSize="15dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</com.kongzue.dialogx.util.views.MaxRelativeLayout>
|
|
|
|
</RelativeLayout>
|
|
|
|
</com.kongzue.dialogx.util.views.DialogXBaseRelativeLayout> |