Skip to content

Instantly share code, notes, and snippets.

@albka1986
Created May 6, 2019 13:38
Show Gist options
  • Save albka1986/9028905ece74d2e58d5fca7afd796732 to your computer and use it in GitHub Desktop.
Save albka1986/9028905ece74d2e58d5fca7afd796732 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.motion.widget.MotionLayout 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:id="@+id/mainMotionLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/background_screen"
app:layoutDescription="@xml/scene_my_balance"
tools:context=".ui.my_balance.FragmentMyBalance">
<LinearLayout
android:id="@+id/header"
android:layout_width="0dp"
android:orientation="vertical"
android:layout_height="260dp"
android:gravity="center_horizontal"
android:background="@drawable/ic_background_header">
<TextView
android:id="@+id/my_balance_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="52dp"
android:fontFamily="@font/lato_regular"
android:text="@string/my_balance"
android:textColor="@color/white"
android:textSize="16sp"/>
<TextView
android:id="@+id/current_balance_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:fontFamily="@font/lato_regular"
android:text="@string/p_2500"
android:textColor="@color/yellowLight"
android:textSize="36sp"/>
<LinearLayout android:layout_width="wrap_content"
android:orientation="horizontal"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/distance_between_deposit_button_title"
android:gravity="center_horizontal"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/deposit_btn"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginEnd="@dimen/margin_between_withdraw_deposit"
android:src="@drawable/ic_deposit"
android:contentDescription="@string/deposit_button"/>
<ImageView
android:id="@+id/withdraw_btn"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginStart="@dimen/margin_between_withdraw_deposit"
android:src="@drawable/ic_withdraw"
android:contentDescription="@string/withdraw_button"/>
</LinearLayout>
<LinearLayout android:layout_width="wrap_content" android:orientation="horizontal"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginEnd="@dimen/margin_between_withdraw_deposit"
android:layout_marginBottom="12dp"
android:fontFamily="@font/lato_regular"
android:text="@string/deposit"
android:textColor="@color/white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/deposit_btn"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_between_withdraw_deposit"
android:layout_marginTop="10dp"
android:layout_marginBottom="8dp"
android:fontFamily="@font/lato_regular"
android:text="@string/withdraw"
android:textColor="@color/white"
android:textSize="14sp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/withdraw_btn"/>
</LinearLayout>
</LinearLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_marginStart="12dp"
android:layout_marginTop="4dp"
android:layout_marginEnd="12dp"
android:layout_marginBottom="4dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/header"/>
</androidx.constraintlayout.motion.widget.MotionLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment