mirror of
https://github.com/pppscn/SmsForwarder
synced 2025-08-02 17:07:41 +08:00
455 lines
18 KiB
XML
455 lines
18 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout 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="match_parent"
|
|
android:background="?attr/xui_config_color_background"
|
|
android:orientation="vertical">
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:overScrollMode="never">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="5dp"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle.Switch"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/sender_name_status"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
|
android:id="@+id/et_name"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="1"
|
|
android:singleLine="true"
|
|
app:met_clearButton="true" />
|
|
|
|
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
|
android:id="@+id/sb_enable"
|
|
style="@style/SwitchButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bark_server"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:hint=""
|
|
android:text="@string/bark_server_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
|
android:id="@+id/et_server"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
app:met_errorMessage="@string/bark_server_error"
|
|
app:met_passWordButton="true"
|
|
app:met_regexp="@string/bark_server_regex"
|
|
app:met_validateOnFocusLost="true" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bark_group"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
|
android:id="@+id/et_group"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="1"
|
|
android:hint="@string/bark_group_tips"
|
|
android:singleLine="true"
|
|
app:met_clearButton="true" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bark_icon"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
|
android:id="@+id/et_icon"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="1"
|
|
android:hint="@string/bark_icon_tips"
|
|
android:singleLine="true"
|
|
app:met_clearButton="true"
|
|
app:met_errorMessage="@string/bark_url_error"
|
|
app:met_regexp="@string/bark_url_regex"
|
|
app:met_validateOnFocusLost="true" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle.Switch"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="3"
|
|
android:text="@string/bark_call"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
|
android:id="@+id/sb_call"
|
|
style="@style/SwitchButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checked="true" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bark_sound"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
|
android:id="@+id/et_sound"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="1"
|
|
android:hint="@string/bark_sound_tips"
|
|
android:singleLine="true"
|
|
app:met_clearButton="true" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bark_badge"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
|
android:id="@+id/et_badge"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="1"
|
|
android:hint="@string/bark_badge_tips"
|
|
android:singleLine="true"
|
|
app:met_clearButton="true" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bark_url"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
|
android:id="@+id/et_url"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="1"
|
|
android:hint="@string/bark_url_tips"
|
|
android:singleLine="true"
|
|
app:met_clearButton="true"
|
|
app:met_errorMessage="@string/bark_url_error"
|
|
app:met_regexp="@string/bark_url_regex2"
|
|
app:met_validateOnFocusLost="true" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="5dp"
|
|
android:text="@string/bark_level"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.spinner.materialspinner.MaterialSpinner
|
|
android:id="@+id/sp_level"
|
|
style="@style/Material.SpinnerStyle"
|
|
android:layout_marginStart="5dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_custom_template"
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/title_template"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:text="@string/custom_template_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
|
android:id="@+id/et_title_template"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
app:met_clearButton="true" />
|
|
|
|
<GridLayout
|
|
android:id="@+id/gl_title_template"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:columnCount="4"
|
|
android:orientation="horizontal" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_auto_copy_template"
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/auto_copy"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:text="@string/custom_template_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
|
android:id="@+id/et_auto_copy_template"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:singleLine="true"
|
|
app:met_clearButton="true" />
|
|
|
|
<GridLayout
|
|
android:id="@+id/gl_auto_copy_template"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:columnCount="4"
|
|
android:orientation="horizontal" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="5dp"
|
|
android:text="@string/bark_encryption_algorithm"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.spinner.materialspinner.MaterialSpinner
|
|
android:id="@+id/sp_encryption_algorithm"
|
|
style="@style/Material.SpinnerStyle"
|
|
android:layout_marginStart="5dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bark_encryption_key"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
|
android:id="@+id/et_encryption_key"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="1"
|
|
android:hint="@string/bark_encryption_key_tips"
|
|
android:singleLine="true"
|
|
app:met_clearButton="true" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/bark_encryption_iv"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
|
android:id="@+id/et_encryption_iv"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="1"
|
|
android:hint="@string/bark_encryption_iv_tips"
|
|
android:singleLine="true"
|
|
app:met_clearButton="true" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:padding="10dp">
|
|
|
|
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
|
android:id="@+id/btn_del"
|
|
style="@style/SuperButton.Gray.Icon.Spacing"
|
|
android:drawableStart="@drawable/ic_delete"
|
|
android:text="@string/del"
|
|
tools:ignore="RtlSymmetry,TextContrastCheck,TouchTargetSizeCheck" />
|
|
|
|
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
|
android:id="@+id/btn_save"
|
|
style="@style/SuperButton.Blue.Icon.Spacing"
|
|
android:drawableStart="@drawable/ic_save"
|
|
android:text="@string/save"
|
|
tools:ignore="RtlSymmetry,TextContrastCheck,TouchTargetSizeCheck" />
|
|
|
|
<com.xuexiang.xui.widget.textview.supertextview.SuperButton
|
|
android:id="@+id/btn_test"
|
|
style="@style/SuperButton.Green.Icon.Spacing"
|
|
android:drawableStart="@drawable/ic_test"
|
|
android:text="@string/test"
|
|
tools:ignore="RtlSymmetry,TextContrastCheck,TouchTargetSizeCheck" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|