mine_notification_setting_activity.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:orientation="vertical"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@color/grey_light_light_light">
  8. <android.support.design.widget.AppBarLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content">
  11. <com.shuishuo.app.common.views.BaseToolbar
  12. android:id="@+id/toolbar"
  13. android:layout_width="match_parent"
  14. android:layout_height="@dimen/action_bar_height"
  15. app:title="消息通知"
  16. app:left_text="返回"/>
  17. </android.support.design.widget.AppBarLayout>
  18. <LinearLayout
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:padding="16dp"
  22. android:gravity="center_vertical"
  23. android:background="@color/white">
  24. <TextView
  25. android:layout_weight="7"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:text="声音"/>
  29. <Switch
  30. android:id="@+id/mine_notification_setting_sound_switch"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content" />
  33. </LinearLayout>
  34. <View
  35. android:layout_width="match_parent"
  36. android:layout_height="1dp"
  37. android:background="@color/grey_light_light"/>
  38. <LinearLayout
  39. android:layout_width="match_parent"
  40. android:layout_height="wrap_content"
  41. android:padding="16dp"
  42. android:gravity="center_vertical"
  43. android:background="@color/white">
  44. <TextView
  45. android:layout_weight="7"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:text="震动"/>
  49. <Switch
  50. android:id="@+id/mine_notification_setting_vibration_switch"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content" />
  53. </LinearLayout>
  54. <View
  55. android:layout_width="match_parent"
  56. android:layout_height="1dp"
  57. android:background="@color/grey_light_light"/>
  58. </LinearLayout>