123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- <?xml version="1.0" encoding="utf-8"?>
- <layout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tool="http://schemas.android.com/tools"
- xmlns:binding="http://schemas.android.com/apk/res-auto">
- <data>
- <variable
- name="click"
- type="com.hongyegroup.cpt_parttime.ui.SettingsActivity.ClickProxy" />
- </data>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/white"
- android:orientation="vertical">
- <com.guadou.lib_baselib.view.titlebar.EasyTitleBar
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- app:Easy_title="设置"/>
- <!--Enable Notification-->
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="@dimen/d_15dp"
- android:visibility="gone"
- android:orientation="horizontal">
- <com.guadou.lib_baselib.font_text_view.TextViewMedium
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="开启消息通知"
- android:textColor="@color/black"
- android:textSize="@dimen/d_14sp" />
- <androidx.appcompat.widget.SwitchCompat
- android:id="@+id/switch_notification"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:background="@drawable/selector_switch_bg"
- app:showText="false"
- app:splitTrack="false"
- app:theme="@style/scstyle"
- app:thumbTint="#00000000"
- app:trackTint="#00000000" />
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="@dimen/d_1dp"
- android:visibility="gone"
- android:background="@color/page_bg" />
- <!--重置密码-->
- <LinearLayout
- android:id="@+id/ll_setting_reset_psd"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- binding:clicks="@{click.resetPassword}"
- android:padding="@dimen/d_15dp">
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="重置密码"
- android:textColor="@color/black"
- android:textSize="@dimen/d_14sp" />
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/d_10dp"
- android:layout_marginRight="@dimen/d_10dp"
- android:src="@drawable/iv_back" />
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="@dimen/d_1dp"
- android:background="@color/page_bg" />
- <!--FAQ-->
- <LinearLayout
- android:id="@+id/ll_setting_faq"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="@dimen/d_15dp"
- android:visibility="visible">
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="常用问题"
- android:textColor="@color/black"
- android:textSize="@dimen/d_14sp" />
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/d_10dp"
- android:layout_marginRight="@dimen/d_10dp"
- android:src="@drawable/iv_back" />
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="@dimen/d_1dp"
- android:visibility="visible"
- android:background="@color/page_bg" />
- <!--账户注销-->
- <LinearLayout
- android:id="@+id/ll_clear_cache"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="@dimen/d_15dp">
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="账户注销"
- android:textColor="@color/black"
- android:textSize="@dimen/d_14sp" />
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/d_10dp"
- android:layout_marginRight="@dimen/d_10dp"
- android:src="@drawable/iv_back" />
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="@dimen/d_1dp"
- android:background="@color/page_bg" />
- <!--Privacy Policy-->
- <LinearLayout
- android:id="@+id/ll_setting_privacy_policy"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="@dimen/d_15dp">
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="隐私条款"
- android:textColor="@color/black"
- android:textSize="@dimen/d_14sp" />
- <ImageView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/d_10dp"
- android:layout_marginRight="@dimen/d_10dp"
- android:src="@drawable/iv_back" />
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="@dimen/d_1dp"
- android:background="@color/page_bg" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:padding="@dimen/d_15dp">
- <TextView
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="版本号"
- android:textColor="@color/black"
- android:textSize="@dimen/d_14sp" />
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginRight="@dimen/d_2dp"
- android:text="V"
- android:textColor="@color/profile_red"
- android:textSize="@dimen/d_14sp" />
- <TextView
- android:id="@+id/text_view_version_no"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginEnd="@dimen/d_10dp"
- android:layout_marginRight="@dimen/d_10dp"
- android:textColor="@color/profile_red"
- android:textSize="@dimen/d_14sp" />
- </LinearLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="@dimen/d_1dp"
- android:background="@color/page_bg" />
- <TextView
- android:id="@+id/button_logout"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginLeft="@dimen/d_30dp"
- android:layout_marginTop="@dimen/d_45dp"
- android:layout_marginRight="@dimen/d_30dp"
- android:background="@drawable/selector_app_blue_button_round2_bg"
- android:gravity="center"
- android:padding="@dimen/d_10dp"
- android:text="退出登录"
- android:textColor="@color/white"
- android:textSize="@dimen/d_16sp" />
- </LinearLayout>
- </layout>
|