Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.57 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Agar layout dapat terkoordinasi ketika di Scroll -->
  3. <android.support.design.widget.CoordinatorLayout
  4. xmlns:android="http://schemas.android.com/apk/res/android"
  5. xmlns:app="http://schemas.android.com/apk/res-auto"
  6. android:id="@+id/main_content"
  7. android:layout_width="match_parent"
  8. android:layout_height="match_parent"
  9. android:fitsSystemWindows="true">
  10.  
  11. <!-- Utk AppBar -->
  12. <android.support.design.widget.AppBarLayout
  13. android:id="@+id/MyAppbar"
  14. android:layout_width="match_parent"
  15. android:layout_height="200dp"
  16. android:fitsSystemWindows="true"
  17. android:background="#74ca38">
  18.  
  19. <!-- Utk scroll AppBar hingga ke Toolbar -->
  20. <android.support.design.widget.CollapsingToolbarLayout
  21. android:id="@+id/collapse_toolbar"
  22. android:layout_width="match_parent"
  23. android:layout_height="match_parent"
  24. android:fitsSystemWindows="true"
  25. app:layout_scrollFlags="scroll|exitUntilCollapsed">
  26.  
  27. <ImageView
  28. android:id="@+id/bgheader"
  29. android:layout_width="match_parent"
  30. android:layout_height="match_parent"
  31. android:fitsSystemWindows="true"
  32. android:scaleType="centerCrop"
  33. app:layout_collapseMode="pin" />
  34.  
  35. <android.support.v7.widget.Toolbar
  36. android:id="@+id/MyToolbar"
  37. android:layout_width="match_parent"
  38. android:layout_height="?attr/actionBarSize"
  39. app:layout_collapseMode="parallax" />
  40.  
  41. </android.support.design.widget.CollapsingToolbarLayout>
  42.  
  43. </android.support.design.widget.AppBarLayout>
  44.  
  45. <android.support.v4.widget.NestedScrollView
  46. android:layout_width="match_parent"
  47. android:layout_height="match_parent"
  48. android:layout_gravity="fill_vertical"
  49. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  50.  
  51. <RelativeLayout
  52. android:layout_width="match_parent"
  53. android:layout_height="match_parent"
  54. android:orientation="vertical"
  55. android:paddingTop="24dp">
  56.  
  57. <RadioGroup
  58. android:id="@+id/pilihan_auth"
  59. android:layout_width="300dp"
  60. android:layout_height="40dp"
  61. android:layout_marginTop="10dp"
  62. android:orientation="horizontal"
  63. android:layout_centerHorizontal="true">
  64.  
  65. <RadioButton
  66. android:id="@+id/radioAndroid"
  67. android:layout_width="match_parent"
  68. android:layout_height="match_parent"
  69. android:layout_weight="1"
  70. android:background="@drawable/rbtn_pilih_login"
  71. android:button="@null"
  72. android:checked="true"
  73. android:gravity="center"
  74. android:padding="5dp"
  75. android:text="MASUK"
  76. android:textColor="#fff" />
  77.  
  78. <RadioButton
  79. android:id="@+id/radioiPhone"
  80. android:layout_width="match_parent"
  81. android:layout_height="match_parent"
  82. android:layout_weight="1"
  83. android:background="@drawable/rbtn_pilih_regist"
  84. android:button="@null"
  85. android:gravity="center"
  86. android:padding="5dp"
  87. android:text="DAFTAR"
  88. android:textColor="#fff" />
  89. </RadioGroup>
  90.  
  91. <EditText
  92. android:id="@+id/no_hp_login"
  93. android:layout_below="@+id/pilihan_auth"
  94. android:layout_marginTop="75dp"
  95. android:layout_width="300dp"
  96. android:layout_height="40dp"
  97. android:layout_centerHorizontal="true"
  98. android:background="@drawable/edit_text_auth"/>
  99.  
  100. <EditText
  101. android:id="@+id/passwd_login"
  102. android:layout_below="@+id/no_hp_login"
  103. android:layout_marginTop="20dp"
  104. android:layout_width="300dp"
  105. android:layout_height="40dp"
  106. android:layout_centerHorizontal="true"
  107. android:background="@drawable/edit_text_auth"/>
  108.  
  109. </RelativeLayout>
  110.  
  111. </android.support.v4.widget.NestedScrollView>
  112.  
  113. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement