Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <!-- Agar layout dapat terkoordinasi ketika di Scroll -->
- <android.support.design.widget.CoordinatorLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/main_content"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="true">
- <!-- Utk AppBar -->
- <android.support.design.widget.AppBarLayout
- android:id="@+id/MyAppbar"
- android:layout_width="match_parent"
- android:layout_height="200dp"
- android:fitsSystemWindows="true"
- android:background="#74ca38">
- <!-- Utk scroll AppBar hingga ke Toolbar -->
- <android.support.design.widget.CollapsingToolbarLayout
- android:id="@+id/collapse_toolbar"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="true"
- app:layout_scrollFlags="scroll|exitUntilCollapsed">
- <ImageView
- android:id="@+id/bgheader"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="true"
- android:scaleType="centerCrop"
- app:layout_collapseMode="pin" />
- <android.support.v7.widget.Toolbar
- android:id="@+id/MyToolbar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- app:layout_collapseMode="parallax" />
- </android.support.design.widget.CollapsingToolbarLayout>
- </android.support.design.widget.AppBarLayout>
- <android.support.v4.widget.NestedScrollView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_gravity="fill_vertical"
- app:layout_behavior="@string/appbar_scrolling_view_behavior">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical"
- android:paddingTop="24dp">
- <RadioGroup
- android:id="@+id/pilihan_auth"
- android:layout_width="300dp"
- android:layout_height="40dp"
- android:layout_marginTop="10dp"
- android:orientation="horizontal"
- android:layout_centerHorizontal="true">
- <RadioButton
- android:id="@+id/radioAndroid"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@drawable/rbtn_pilih_login"
- android:button="@null"
- android:checked="true"
- android:gravity="center"
- android:padding="5dp"
- android:text="MASUK"
- android:textColor="#fff" />
- <RadioButton
- android:id="@+id/radioiPhone"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:background="@drawable/rbtn_pilih_regist"
- android:button="@null"
- android:gravity="center"
- android:padding="5dp"
- android:text="DAFTAR"
- android:textColor="#fff" />
- </RadioGroup>
- <EditText
- android:id="@+id/no_hp_login"
- android:layout_below="@+id/pilihan_auth"
- android:layout_marginTop="75dp"
- android:layout_width="300dp"
- android:layout_height="40dp"
- android:layout_centerHorizontal="true"
- android:background="@drawable/edit_text_auth"/>
- <EditText
- android:id="@+id/passwd_login"
- android:layout_below="@+id/no_hp_login"
- android:layout_marginTop="20dp"
- android:layout_width="300dp"
- android:layout_height="40dp"
- android:layout_centerHorizontal="true"
- android:background="@drawable/edit_text_auth"/>
- </RelativeLayout>
- </android.support.v4.widget.NestedScrollView>
- </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement