|
|
@@ -1,175 +1,179 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:fillViewport="true"
|
|
|
android:fitsSystemWindows="true"
|
|
|
- android:orientation="vertical"
|
|
|
android:background="@color/white">
|
|
|
|
|
|
- <include layout="@layout/view_toolbar"/>
|
|
|
-
|
|
|
-
|
|
|
- <!--管理员才能看到此界面-->
|
|
|
<LinearLayout
|
|
|
- android:id="@+id/ll_admin"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
android:orientation="vertical">
|
|
|
+ <include layout="@layout/view_toolbar"/>
|
|
|
+
|
|
|
|
|
|
- <com.google.android.material.textfield.TextInputLayout
|
|
|
+ <!--管理员才能看到此界面-->
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_admin"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/margin_default"
|
|
|
- android:layout_marginEnd="@dimen/margin_default"
|
|
|
- android:layout_marginTop="@dimen/margin_default"
|
|
|
- android:hint="请输入要升级的账号"
|
|
|
- app:boxBackgroundMode="outline"
|
|
|
- app:boxCornerRadiusBottomEnd="4dp"
|
|
|
- app:boxCornerRadiusBottomStart="4dp"
|
|
|
- app:boxCornerRadiusTopEnd="4dp"
|
|
|
- app:boxCornerRadiusTopStart="4dp"
|
|
|
- app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
- app:boxStrokeWidthFocused="@dimen/width_stroke"
|
|
|
- style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
-
|
|
|
- <com.google.android.material.textfield.TextInputEditText
|
|
|
- android:id="@+id/et_email"
|
|
|
+ android:orientation="vertical">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/margin_default"
|
|
|
+ android:layout_marginEnd="@dimen/margin_default"
|
|
|
+ android:layout_marginTop="@dimen/margin_default"
|
|
|
+ android:hint="请输入要升级的账号"
|
|
|
+ app:boxBackgroundMode="outline"
|
|
|
+ app:boxCornerRadiusBottomEnd="4dp"
|
|
|
+ app:boxCornerRadiusBottomStart="4dp"
|
|
|
+ app:boxCornerRadiusTopEnd="4dp"
|
|
|
+ app:boxCornerRadiusTopStart="4dp"
|
|
|
+ app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
+ app:boxStrokeWidthFocused="@dimen/width_stroke"
|
|
|
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:id="@+id/et_email"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textSize="@dimen/text_normal_s"
|
|
|
+ android:inputType="textEmailAddress"
|
|
|
+ android:maxLength="50"/>
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+
|
|
|
+ <android.widget.Button
|
|
|
+ android:id="@+id/btn_set_vip"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:textSize="@dimen/text_normal_s"
|
|
|
- android:inputType="textEmailAddress"
|
|
|
- android:maxLength="50"/>
|
|
|
- </com.google.android.material.textfield.TextInputLayout>
|
|
|
+ android:minHeight="0dp"
|
|
|
+ android:layout_margin="@dimen/margin_default"
|
|
|
+ android:paddingTop="@dimen/padding_full_width"
|
|
|
+ android:paddingBottom="@dimen/padding_full_width"
|
|
|
+ android:text="升级为VIP用户"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:background="@drawable/selector_btn"
|
|
|
+ style="?android:attr/borderlessButtonStyle"/>
|
|
|
+
|
|
|
+ <include layout="@layout/view_divider_common"/>
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputLayout
|
|
|
+ android:id="@+id/til_zfb"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_marginStart="@dimen/margin_default"
|
|
|
+ android:layout_marginEnd="@dimen/margin_default"
|
|
|
+ android:layout_marginTop="@dimen/margin_default"
|
|
|
+ android:hint="请输入新的支付链接"
|
|
|
+ app:boxBackgroundMode="outline"
|
|
|
+ app:boxCornerRadiusBottomEnd="4dp"
|
|
|
+ app:boxCornerRadiusBottomStart="4dp"
|
|
|
+ app:boxCornerRadiusTopEnd="4dp"
|
|
|
+ app:boxCornerRadiusTopStart="4dp"
|
|
|
+ app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
+ app:boxStrokeWidthFocused="@dimen/width_stroke"
|
|
|
+ style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
+
|
|
|
+ <com.google.android.material.textfield.TextInputEditText
|
|
|
+ android:id="@+id/et_zfb"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:textSize="@dimen/text_normal_s"
|
|
|
+ android:inputType="textEmailAddress"
|
|
|
+ android:maxLength="50"/>
|
|
|
+ </com.google.android.material.textfield.TextInputLayout>
|
|
|
+
|
|
|
+ <android.widget.Button
|
|
|
+ android:id="@+id/btn_set_zfb"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:minHeight="0dp"
|
|
|
+ android:layout_margin="@dimen/margin_default"
|
|
|
+ android:paddingTop="@dimen/padding_full_width"
|
|
|
+ android:paddingBottom="@dimen/padding_full_width"
|
|
|
+ android:text="设置新的支付链接"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:background="@drawable/selector_btn"
|
|
|
+ style="?android:attr/borderlessButtonStyle"/>
|
|
|
+
|
|
|
+ <include layout="@layout/view_divider_common"/>
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_add_photo"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/height_tool_bar"
|
|
|
+ android:background="?attr/selectableItemBackground"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:paddingStart="@dimen/activity_horizontal_margin"
|
|
|
+ android:paddingEnd="@dimen/activity_horizontal_margin"
|
|
|
+ android:text="增加图片"
|
|
|
+ android:textColor="@color/black_text"
|
|
|
+ android:visibility="gone"/>
|
|
|
|
|
|
- <android.widget.Button
|
|
|
- android:id="@+id/btn_set_vip"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:minHeight="0dp"
|
|
|
- android:layout_margin="@dimen/margin_default"
|
|
|
- android:paddingTop="@dimen/padding_full_width"
|
|
|
- android:paddingBottom="@dimen/padding_full_width"
|
|
|
- android:text="升级为VIP用户"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textStyle="bold"
|
|
|
- android:background="@drawable/selector_btn"
|
|
|
- style="?android:attr/borderlessButtonStyle"/>
|
|
|
+ <!--<include layout="@layout/view_divider_common"/>-->
|
|
|
|
|
|
- <include layout="@layout/view_divider_common"/>
|
|
|
|
|
|
- <com.google.android.material.textfield.TextInputLayout
|
|
|
- android:id="@+id/til_zfb"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:layout_marginStart="@dimen/margin_default"
|
|
|
- android:layout_marginEnd="@dimen/margin_default"
|
|
|
- android:layout_marginTop="@dimen/margin_default"
|
|
|
- android:hint="请输入新的支付链接"
|
|
|
- app:boxBackgroundMode="outline"
|
|
|
- app:boxCornerRadiusBottomEnd="4dp"
|
|
|
- app:boxCornerRadiusBottomStart="4dp"
|
|
|
- app:boxCornerRadiusTopEnd="4dp"
|
|
|
- app:boxCornerRadiusTopStart="4dp"
|
|
|
- app:boxStrokeWidth="@dimen/width_stroke"
|
|
|
- app:boxStrokeWidthFocused="@dimen/width_stroke"
|
|
|
- style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
|
|
|
-
|
|
|
- <com.google.android.material.textfield.TextInputEditText
|
|
|
- android:id="@+id/et_zfb"
|
|
|
+ <Switch
|
|
|
+ android:id="@+id/switch_api"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:textSize="@dimen/text_normal_s"
|
|
|
- android:inputType="textEmailAddress"
|
|
|
- android:maxLength="50"/>
|
|
|
- </com.google.android.material.textfield.TextInputLayout>
|
|
|
+ android:layout_height="@dimen/height_tool_bar"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_marginStart="@dimen/margin_default"
|
|
|
+ android:layout_marginEnd="@dimen/margin_default"
|
|
|
+ android:text="是否限制访问伊甸园"/>
|
|
|
|
|
|
- <android.widget.Button
|
|
|
- android:id="@+id/btn_set_zfb"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:minHeight="0dp"
|
|
|
- android:layout_margin="@dimen/margin_default"
|
|
|
- android:paddingTop="@dimen/padding_full_width"
|
|
|
- android:paddingBottom="@dimen/padding_full_width"
|
|
|
- android:text="设置新的支付链接"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textStyle="bold"
|
|
|
- android:background="@drawable/selector_btn"
|
|
|
- style="?android:attr/borderlessButtonStyle"/>
|
|
|
+ <include layout="@layout/view_divider_common" />
|
|
|
+
|
|
|
+ <Switch
|
|
|
+ android:id="@+id/switch_walk"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="@dimen/height_tool_bar"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_marginStart="@dimen/margin_default"
|
|
|
+ android:layout_marginEnd="@dimen/margin_default"
|
|
|
+ android:text="是否在下次启动爬虫"/>
|
|
|
|
|
|
- <include layout="@layout/view_divider_common"/>
|
|
|
+ <include layout="@layout/view_divider_common" />
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
<TextView
|
|
|
- android:id="@+id/tv_add_photo"
|
|
|
+ android:id="@+id/tv_my_fav"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="@dimen/height_tool_bar"
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
android:gravity="center_vertical"
|
|
|
android:paddingStart="@dimen/activity_horizontal_margin"
|
|
|
android:paddingEnd="@dimen/activity_horizontal_margin"
|
|
|
- android:text="增加图片"
|
|
|
- android:textColor="@color/black_text"
|
|
|
- android:visibility="gone"/>
|
|
|
-
|
|
|
- <!--<include layout="@layout/view_divider_common"/>-->
|
|
|
+ android:text="我的收藏"
|
|
|
+ android:textColor="@color/black_text" />
|
|
|
|
|
|
+ <include layout="@layout/view_divider_common" />
|
|
|
|
|
|
- <Switch
|
|
|
- android:id="@+id/switch_api"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="@dimen/height_tool_bar"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:layout_marginStart="@dimen/margin_default"
|
|
|
- android:layout_marginEnd="@dimen/margin_default"
|
|
|
- android:text="是否限制访问伊甸园"/>
|
|
|
|
|
|
- <include layout="@layout/view_divider_common" />
|
|
|
|
|
|
- <Switch
|
|
|
- android:id="@+id/switch_walk"
|
|
|
+ <android.widget.Button
|
|
|
+ android:id="@+id/btn_exit_login"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="@dimen/height_tool_bar"
|
|
|
- android:gravity="center_vertical"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:minHeight="0dp"
|
|
|
+ android:layout_marginTop="@dimen/margin_default"
|
|
|
+ android:layout_marginBottom="@dimen/margin_default"
|
|
|
android:layout_marginStart="@dimen/margin_default"
|
|
|
android:layout_marginEnd="@dimen/margin_default"
|
|
|
- android:text="是否在下次启动爬虫"/>
|
|
|
-
|
|
|
- <include layout="@layout/view_divider_common" />
|
|
|
+ android:paddingTop="@dimen/padding_full_width"
|
|
|
+ android:paddingBottom="@dimen/padding_full_width"
|
|
|
+ android:text="退出当前账号"
|
|
|
+ android:textColor="@color/white"
|
|
|
+ android:textStyle="bold"
|
|
|
+ android:background="@drawable/selector_btn_exit"
|
|
|
+ style="?android:attr/borderlessButtonStyle"/>
|
|
|
</LinearLayout>
|
|
|
|
|
|
- <TextView
|
|
|
- android:id="@+id/tv_my_fav"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="@dimen/height_tool_bar"
|
|
|
- android:background="?attr/selectableItemBackground"
|
|
|
- android:gravity="center_vertical"
|
|
|
- android:paddingStart="@dimen/activity_horizontal_margin"
|
|
|
- android:paddingEnd="@dimen/activity_horizontal_margin"
|
|
|
- android:text="我的收藏"
|
|
|
- android:textColor="@color/black_text" />
|
|
|
-
|
|
|
- <include layout="@layout/view_divider_common" />
|
|
|
-
|
|
|
- <View
|
|
|
- android:layout_width="wrap_content"
|
|
|
- android:layout_height="0dp"
|
|
|
- android:layout_weight="1"/>
|
|
|
-
|
|
|
- <android.widget.Button
|
|
|
- android:id="@+id/btn_exit_login"
|
|
|
- android:layout_width="match_parent"
|
|
|
- android:layout_height="wrap_content"
|
|
|
- android:minHeight="0dp"
|
|
|
- android:layout_marginBottom="@dimen/margin_default"
|
|
|
- android:layout_marginStart="@dimen/margin_default"
|
|
|
- android:layout_marginEnd="@dimen/margin_default"
|
|
|
- android:paddingTop="@dimen/padding_full_width"
|
|
|
- android:paddingBottom="@dimen/padding_full_width"
|
|
|
- android:text="退出当前账号"
|
|
|
- android:textColor="@color/white"
|
|
|
- android:textStyle="bold"
|
|
|
- android:background="@drawable/selector_btn_exit"
|
|
|
- style="?android:attr/borderlessButtonStyle"/>
|
|
|
-</LinearLayout>
|
|
|
+
|
|
|
+</ScrollView>
|