mirror of
https://github.com/pppscn/SmsForwarder
synced 2025-08-22 02:37:40 +08:00
807 lines
34 KiB
XML
807 lines
34 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 style="@style/ScrollViewStyle">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="5dp"
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginEnd="5dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/server_settings"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="10dp"
|
|
android:text="@string/server_settings_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
tools:ignore="RtlSymmetry">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
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/http_server"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.button.SmoothCheckBox
|
|
android:id="@+id/scb_server_autorun"
|
|
android:layout_width="15dp"
|
|
android:layout_height="15dp"
|
|
android:layout_marginStart="10dp"
|
|
app:scb_color_checked="@color/colorPrimary" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="2dp"
|
|
android:text="@string/auto_startup"
|
|
android:textSize="@dimen/text_size_small" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<com.xuexiang.xui.widget.button.shadowbutton.RippleShadowShadowButton
|
|
android:id="@+id/iv_copy"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginEnd="5dp"
|
|
android:gravity="center"
|
|
android:padding="3dp"
|
|
android:text="@string/copy"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_mini"
|
|
app:sb_color_unpressed="@color/colorStart"
|
|
app:sb_ripple_color="@color/white"
|
|
app:sb_ripple_duration="500"
|
|
app:sb_shape_type="rectangle"
|
|
tools:ignore="PrivateResource,SmallSp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_server_tips"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/http_server_stopped"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<com.xuexiang.xui.widget.button.shadowbutton.RippleShadowShadowButton
|
|
android:id="@+id/btn_toggle_server"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:gravity="center"
|
|
android:padding="5dp"
|
|
android:text="@string/start_server"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_mini"
|
|
app:sb_color_unpressed="@color/colorPrimary"
|
|
app:sb_ripple_color="@color/white"
|
|
app:sb_ripple_duration="500"
|
|
app:sb_shape_type="rectangle"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingEnd="10dp"
|
|
tools:ignore="RtlSymmetry">
|
|
|
|
<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/safety_measures"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="10dp"
|
|
android:text="@string/safety_measures_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<RadioGroup
|
|
android:id="@+id/rg_safety_measures"
|
|
style="@style/rg_style"
|
|
android:orientation="horizontal">
|
|
|
|
<RadioButton
|
|
android:id="@+id/rb_safety_measures_none"
|
|
style="@style/rg_rb_style"
|
|
android:checked="true"
|
|
android:text="@string/safety_measures_none" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/rb_safety_measures_sign"
|
|
style="@style/rg_rb_style"
|
|
android:text="@string/safety_measures_sign" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/rb_safety_measures_rsa"
|
|
style="@style/rg_rb_style"
|
|
android:text="@string/safety_measures_rsa" />
|
|
|
|
<RadioButton
|
|
android:id="@+id/rb_safety_measures_sm4"
|
|
style="@style/rg_rb_style"
|
|
android:text="@string/safety_measures_sm4" />
|
|
|
|
</RadioGroup>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_sign_key"
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
tools:ignore="RtlSymmetry">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/sign_key"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
|
android:id="@+id/et_sign_key"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="1"
|
|
android:singleLine="true"
|
|
app:met_passWordButton="true" />
|
|
|
|
<com.xuexiang.xui.widget.button.shadowbutton.RippleShadowShadowButton
|
|
android:id="@+id/btn_sign_key"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:gravity="center"
|
|
android:padding="5dp"
|
|
android:text="@string/random"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_mini"
|
|
app:sb_color_unpressed="@color/colorPrimary"
|
|
app:sb_ripple_color="@color/white"
|
|
app:sb_ripple_duration="500"
|
|
app:sb_shape_type="rectangle"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_time_tolerance"
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
tools:ignore="RtlSymmetry">
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/time_tolerance"
|
|
android:textStyle="bold"
|
|
tools:ignore="RelativeOverlap" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/time_tolerance_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.xuexiang.xui.widget.picker.XSeekBar
|
|
android:id="@+id/xsb_time_tolerance"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="1"
|
|
app:xsb_max="600"
|
|
app:xsb_min="1" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:text="@string/seconds"
|
|
android:textSize="@dimen/text_size_small"
|
|
android:textStyle="bold" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_private_key"
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
tools:ignore="RtlSymmetry">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/private_key"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
|
android:id="@+id/et_private_key"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="1"
|
|
android:gravity="top"
|
|
android:hint="@string/private_key_tips"
|
|
android:importantForAutofill="no"
|
|
android:inputType="textMultiLine"
|
|
android:maxLines="5"
|
|
android:minLines="2"
|
|
android:scrollbars="vertical"
|
|
android:textSize="@dimen/text_size_mini"
|
|
app:met_passWordButton="true" />
|
|
|
|
<com.xuexiang.xui.widget.button.shadowbutton.RippleShadowShadowButton
|
|
android:id="@+id/btn_generate_key"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:gravity="center"
|
|
android:padding="5dp"
|
|
android:text="@string/generate_key"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_mini"
|
|
app:sb_color_unpressed="@color/colorPrimary"
|
|
app:sb_ripple_color="@color/white"
|
|
app:sb_ripple_duration="500"
|
|
app:sb_shape_type="rectangle"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_public_key"
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
tools:ignore="RtlSymmetry">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/public_key"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
|
android:id="@+id/et_public_key"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="1"
|
|
android:gravity="top"
|
|
android:hint="@string/public_key_tips"
|
|
android:importantForAutofill="no"
|
|
android:inputType="textMultiLine"
|
|
android:maxLines="5"
|
|
android:minLines="2"
|
|
android:scrollbars="vertical"
|
|
android:textSize="@dimen/text_size_mini"
|
|
app:met_passWordButton="true" />
|
|
|
|
<com.xuexiang.xui.widget.button.shadowbutton.RippleShadowShadowButton
|
|
android:id="@+id/btn_copy_public_key"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:gravity="center"
|
|
android:padding="5dp"
|
|
android:text="@string/copy_public_key"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_mini"
|
|
app:sb_color_unpressed="@color/colorPrimary"
|
|
app:sb_ripple_color="@color/white"
|
|
app:sb_ripple_duration="500"
|
|
app:sb_shape_type="rectangle"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/layout_sm4_key"
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
tools:ignore="RtlSymmetry">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/sm4_key"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.edittext.materialedittext.MaterialEditText
|
|
android:id="@+id/et_sm4_key"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="1"
|
|
android:hint="@string/sm4_key_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
app:met_passWordButton="true" />
|
|
|
|
<com.xuexiang.xui.widget.button.shadowbutton.RippleShadowShadowButton
|
|
android:id="@+id/btn_sm4_key"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:gravity="center"
|
|
android:padding="5dp"
|
|
android:text="@string/generate_key"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_mini"
|
|
app:sb_color_unpressed="@color/colorPrimary"
|
|
app:sb_ripple_color="@color/white"
|
|
app:sb_ripple_duration="500"
|
|
app:sb_shape_type="rectangle"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginEnd="5dp"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/enable_function"
|
|
android:textStyle="bold" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="10dp"
|
|
android:text="@string/enable_function_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
tools:ignore="RtlSymmetry">
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/web_client"
|
|
android:textStyle="bold" />
|
|
|
|
<com.xuexiang.xui.widget.edittext.ClearEditText
|
|
android:id="@+id/et_web_path"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:layout_weight="1"
|
|
android:hint="@string/web_path_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
<com.xuexiang.xui.widget.button.shadowbutton.RippleShadowShadowButton
|
|
android:id="@+id/btn_path_picker"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="5dp"
|
|
android:gravity="center"
|
|
android:padding="5dp"
|
|
android:text="@string/select_directory"
|
|
android:textColor="@color/white"
|
|
android:textSize="@dimen/text_size_mini"
|
|
app:sb_color_unpressed="@color/colorPrimary"
|
|
app:sb_ripple_color="@color/white"
|
|
app:sb_ripple_duration="500"
|
|
app:sb_shape_type="rectangle"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_clone"
|
|
android:textStyle="bold"
|
|
tools:ignore="RelativeOverlap" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_clone_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
|
android:id="@+id/sb_api_clone"
|
|
style="@style/SwitchButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_sms_query"
|
|
android:textStyle="bold"
|
|
tools:ignore="RelativeOverlap" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_sms_query_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
|
android:id="@+id/sb_api_query_sms"
|
|
style="@style/SwitchButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_sms_send"
|
|
android:textStyle="bold"
|
|
tools:ignore="RelativeOverlap" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_sms_send_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
|
android:id="@+id/sb_api_send_sms"
|
|
style="@style/SwitchButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_call_query"
|
|
android:textStyle="bold"
|
|
tools:ignore="RelativeOverlap" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_call_query_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
|
android:id="@+id/sb_api_query_call"
|
|
style="@style/SwitchButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_contact_query"
|
|
android:textStyle="bold"
|
|
tools:ignore="RelativeOverlap" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_contact_query_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
|
android:id="@+id/sb_api_query_contacts"
|
|
style="@style/SwitchButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
tools:ignore="TooManyViews">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_contact_add"
|
|
android:textStyle="bold"
|
|
tools:ignore="RelativeOverlap" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_contact_add_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
|
android:id="@+id/sb_api_add_contacts"
|
|
style="@style/SwitchButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_wol"
|
|
android:textStyle="bold"
|
|
tools:ignore="RelativeOverlap,TooManyViews" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_wol_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
|
android:id="@+id/sb_api_wol"
|
|
style="@style/SwitchButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_location"
|
|
android:textStyle="bold"
|
|
tools:ignore="RelativeOverlap,TooManyViews" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_location_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
|
android:id="@+id/sb_api_location"
|
|
style="@style/SwitchButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
style="@style/BarStyle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
tools:ignore="TooManyViews">
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_battery_query"
|
|
android:textStyle="bold"
|
|
tools:ignore="RelativeOverlap" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/api_battery_query_tips"
|
|
android:textSize="@dimen/text_size_mini"
|
|
tools:ignore="SmallSp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<com.xuexiang.xui.widget.button.switchbutton.SwitchButton
|
|
android:id="@+id/sb_api_query_battery"
|
|
style="@style/SwitchButtonStyle"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
</LinearLayout> |