Skip to content

Instantly share code, notes, and snippets.

@huuhoa
Created January 17, 2016 04:14
Show Gist options
  • Save huuhoa/0e669286446a64e0f3ce to your computer and use it in GitHub Desktop.
Save huuhoa/0e669286446a64e0f3ce to your computer and use it in GitHub Desktop.
<android.support.v4.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="vn.com.vng.vmpay.ui.fragments.DepositFragment"
android:background="@color/bg_default">
<RelativeLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout android:id="@+id/layout_buttons"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_alignParentBottom="true"
android:padding="0dp">
<Button
android:id="@+id/btn_deposit"
style="@style/AppTheme.Button.Normal"
android:theme="@style/PrimaryButtonColor"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/btn_deposit"
android:layout_marginTop="@dimen/spacing.medium"
/>
</LinearLayout>
<android.support.v7.widget.CardView
style="@style/CardViewStyle"
android:layout_gravity="center"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/spacing.tiny"
android:layout_above="@id/layout_buttons"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="@dimen/spacing.medium">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:layout_margin="@dimen/spacing.medium"
>
<EditText
android:id="@+id/edit_amount"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="0"
android:inputType="number"
android:textColor="@color/number_color"
android:textSize="@dimen/moneytext.large"
android:textAlignment="gravity"
android:gravity="right|center_vertical"
android:paddingRight="@dimen/spacing.large"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="đ"
android:textColor="@color/number_color"
android:textSize="@dimen/moneytext.large"
android:layout_gravity="right|center_vertical"/>
</FrameLayout>
<Spinner
android:id="@+id/spinner_method"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_margin="@dimen/spacing.medium"/>
</LinearLayout>
</android.support.v7.widget.CardView>
</RelativeLayout>
</android.support.v4.widget.NestedScrollView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment