Skip to content

Instantly share code, notes, and snippets.

@alfianyusufabdullah
Created October 5, 2017 02:45
Show Gist options
  • Select an option

  • Save alfianyusufabdullah/95008dc52d949a22b316d5671d622a1e to your computer and use it in GitHub Desktop.

Select an option

Save alfianyusufabdullah/95008dc52d949a22b316d5671d622a1e to your computer and use it in GitHub Desktop.
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="jonesrandom.kamusobat.Main.Halaman.Login.FragmentLogin">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:clipToPadding="false"
android:padding="20dp"
android:scrollbars="none">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_marginLeft="@dimen/margin_right_left"
android:layout_marginRight="@dimen/margin_right_left">
<ImageView
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_gravity="center_horizontal"
app:srcCompat="@drawable/ic_pills" />
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:textColorHint="#d1d1d1">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Email"
android:inputType="textNoSuggestions"
android:textColor="#fff" />
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="#d1d1d1"
app:passwordToggleEnabled="true"
app:passwordToggleTint="#fff"
android:layout_marginTop="10dp">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Password"
android:inputType="textPassword"
android:textColor="#fff" />
</android.support.design.widget.TextInputLayout>
<Button
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_marginTop="30dp"
android:background="#fff"
android:text="login"
android:textColor="#404040" />
<Button
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_marginTop="10dp"
android:background="#aeacac"
android:text="SKIP"
android:textColor="#fff" />
</LinearLayout>
</ScrollView>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment