activity_pick_server.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:orientation="vertical" android:tag="layout/activity_pick_server_0" xmlns:android="http://schemas.android.com/apk/res/android">
  6. <include android:id="@+id/toolbar" layout="@layout/toolbar" />
  7. <ScrollView
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:fillViewport="true">
  11. <RelativeLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent"
  14. android:background="?attr/color_background_primary">
  15. <LinearLayout
  16. android:id="@+id/linearLayout"
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:layout_alignParentStart="true"
  20. android:layout_alignParentLeft="true"
  21. android:layout_alignParentBottom="true"
  22. android:minHeight="256dp"
  23. android:orientation="vertical"
  24. android:paddingLeft="16dp"
  25. android:paddingRight="16dp"
  26. android:paddingBottom="10dp">
  27. <Space
  28. android:layout_width="match_parent"
  29. android:layout_height="0dp"
  30. android:layout_weight="1" />
  31. <TextView
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:text="@string/pick_a_server"
  35. android:textAppearance="@style/TextAppearance.Conversations.Title" />
  36. <TextView
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_marginTop="8dp"
  40. android:text="@string/server_select_text"
  41. android:textAppearance="@style/TextAppearance.Conversations.Body1" />
  42. <Button
  43. android:id="@+id/use_cim"
  44. style="@style/Widget.Conversations.Button.Borderless"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:layout_gravity="right"
  48. android:text="@string/use_conversations.im"
  49. android:textColor="?colorAccent" />
  50. <Button
  51. android:id="@+id/use_own_provider"
  52. style="@style/Widget.Conversations.Button.Borderless"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:layout_gravity="right"
  56. android:text="@string/use_own_provider"
  57. android:textColor="?android:textColorSecondary" />
  58. </LinearLayout>
  59. <RelativeLayout
  60. android:layout_width="match_parent"
  61. android:layout_height="match_parent"
  62. android:layout_above="@+id/linearLayout"
  63. android:layout_alignParentStart="true"
  64. android:layout_alignParentLeft="true">
  65. <ImageView
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:layout_centerHorizontal="true"
  69. android:layout_centerVertical="true"
  70. android:padding="8dp"
  71. android:src="@drawable/main_logo" />
  72. </RelativeLayout>
  73. <TextView
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:layout_alignParentBottom="true"
  77. android:layout_centerHorizontal="true"
  78. android:maxLines="1"
  79. android:paddingLeft="8dp"
  80. android:paddingRight="8dp"
  81. android:text="@string/free_for_six_month"
  82. android:textColor="?android:attr/textColorSecondary"
  83. android:textSize="@dimen/fineprint_size" />
  84. </RelativeLayout>
  85. </ScrollView>
  86. </LinearLayout>