Skip to content

Instantly share code, notes, and snippets.

@robisaks
Created December 9, 2014 19:26
Show Gist options
  • Save robisaks/e9e035e3f8c63f0b4bb1 to your computer and use it in GitHub Desktop.
Save robisaks/e9e035e3f8c63f0b4bb1 to your computer and use it in GitHub Desktop.
<RelativeLayout android:orientation="vertical"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:animateLayoutChanges="true"
android:layout_height="wrap_content">
...
<ScrollView
android:background="@color/base_background"
android:visibility="gone"
android:id="@+id/sign_up_container"
android:layout_alignParentBottom="true"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:paddingTop="10dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:paddingBottom="1dp"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_height="wrap_content">
<com.rengwuxian.materialedittext.MaterialEditText
style="@style/MaterialEditText"
android:id="@+id/first_name"
android:hint="@string/first_name"/>
<com.rengwuxian.materialedittext.MaterialEditText
android:id="@+id/last_name"
style="@style/MaterialEditText"
android:hint="@string/last_name"/>
<com.rengwuxian.materialedittext.MaterialEditText
android:id="@+id/email"
style="@style/MaterialEditText"
android:hint="@string/email"/>
<com.rengwuxian.materialedittext.MaterialEditText
android:id="@+id/sign_up_username"
style="@style/MaterialEditText"
android:hint="@string/username_only"/>
<com.rengwuxian.materialedittext.MaterialEditText
android:id="@+id/sign_up_password"
android:inputType="textPassword"
style="@style/MaterialEditText"
app:helperText="@string/password_length_helper"
android:imeOptions="actionDone"
android:hint="@string/password"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_gravity="right"
android:layout_height="wrap_content">
<Button
android:id="@+id/sign_up_cancel"
android:textColor="@color/dove_gray"
android:layout_width="wrap_content"
style="@style/TitleBarAction"
android:textSize="@dimen/text_size_small"
android:text="@string/cancel"
android:elevation="2dp"
android:layout_gravity="center_vertical"
android:textAllCaps="true"
android:layout_margin="3dip" />
<FrameLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<Button
android:id="@+id/sign_up_action"
android:textSize="@dimen/text_size_small"
android:layout_gravity="center_vertical"
android:layout_width="wrap_content"
style="@style/GreenButton.LargeText"
android:text="@string/sign_up"
android:elevation="2dp"
android:textAllCaps="true"
android:layout_margin="3dip" />
</FrameLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
...
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment