|
@@ -0,0 +1,228 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ xmlns:tools="http://schemas.android.com/tools">
|
|
|
+
|
|
|
+ <include
|
|
|
+ android:id="@+id/toolbar"
|
|
|
+ layout="@layout/layout_toolbar"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="56dp"
|
|
|
+ android:layout_marginTop="25dp"
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
+
|
|
|
+
|
|
|
+ <androidx.constraintlayout.widget.ConstraintLayout
|
|
|
+ android:id="@+id/clTop"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/toolbar"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginEnd="15dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ android:background="@drawable/shape_3d8aff_3d7fff_all_15"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="100dp">
|
|
|
+
|
|
|
+
|
|
|
+ <com.swago.baseswago.cusview.MediumTextView
|
|
|
+ android:id="@+id/tv1"
|
|
|
+ android:layout_marginTop="24dp"
|
|
|
+ android:drawableStart="@mipmap/icon_coin_48"
|
|
|
+ android:textSize="12dp"
|
|
|
+ android:textColor="#fff"
|
|
|
+ android:text="@string/coin_balance"
|
|
|
+ android:gravity="center"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/view"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+
|
|
|
+
|
|
|
+ <com.swago.baseswago.cusview.BoldTextView
|
|
|
+ android:id="@+id/tvCoinBalance"
|
|
|
+ android:textSize="24dp"
|
|
|
+ android:textColor="#fff"
|
|
|
+ tools:text="123456"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="@+id/view"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ android:layout_marginBottom="24dp"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/view"
|
|
|
+ android:layout_marginTop="24dp"
|
|
|
+ android:layout_marginBottom="24dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ android:layout_width="2dp"
|
|
|
+ android:background="#1AFFFFFF"
|
|
|
+ android:layout_height="0dp"/>
|
|
|
+
|
|
|
+
|
|
|
+ <com.swago.baseswago.cusview.MediumTextView
|
|
|
+ android:id="@+id/tv2"
|
|
|
+ android:layout_marginTop="24dp"
|
|
|
+ android:drawableStart="@mipmap/icon_diamond"
|
|
|
+ android:textSize="12dp"
|
|
|
+ android:textColor="#fff"
|
|
|
+ android:text="@string/diamond_balance"
|
|
|
+ android:gravity="center"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/view"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+
|
|
|
+
|
|
|
+ <com.swago.baseswago.cusview.BoldTextView
|
|
|
+ android:id="@+id/tvDiamondsBalance"
|
|
|
+ android:textSize="24dp"
|
|
|
+ android:textColor="#fff"
|
|
|
+ tools:text="1234567890"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/view"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ android:layout_marginBottom="24dp"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content" />
|
|
|
+
|
|
|
+ </androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <com.swago.baseswago.cusview.BoldTextView
|
|
|
+ android:id="@+id/tv3"
|
|
|
+ android:textSize="16dp"
|
|
|
+ android:textColor="#131B23"
|
|
|
+ android:layout_marginTop="27dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:text="@string/exchange_coin"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/clTop"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/clTop"
|
|
|
+ android:layout_marginTop="22dp"
|
|
|
+ android:layout_marginEnd="15dp"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ android:orientation="horizontal"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:background="@drawable/shape_f1f4f8_16"
|
|
|
+ android:layout_height="28dp">
|
|
|
+
|
|
|
+ <com.swago.baseswago.cusview.MediumTextView
|
|
|
+ android:id="@+id/tvSelf"
|
|
|
+ android:textSize="14dp"
|
|
|
+ android:text="@string/self"
|
|
|
+ android:paddingStart="10dp"
|
|
|
+ android:paddingEnd="10dp"
|
|
|
+ android:textColor="#131B23"
|
|
|
+ android:layout_marginStart="2dp"
|
|
|
+ android:background="@drawable/shape_white_20"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="24dp"/>
|
|
|
+
|
|
|
+ <com.swago.baseswago.cusview.MediumTextView
|
|
|
+ android:id="@+id/tvOther"
|
|
|
+ android:textSize="14dp"
|
|
|
+ android:text="@string/other"
|
|
|
+ android:layout_marginEnd="2dp"
|
|
|
+ android:paddingStart="10dp"
|
|
|
+ android:paddingEnd="10dp"
|
|
|
+ android:gravity="center_vertical"
|
|
|
+ android:layout_gravity="center_vertical"
|
|
|
+ android:textColor="#131B23"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="24dp"/>
|
|
|
+
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+
|
|
|
+ <com.swago.baseswago.cusview.MediumTextView
|
|
|
+ android:id="@+id/tv4"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginTop="26dp"
|
|
|
+ android:textColor="#435568"
|
|
|
+ android:textSize="16dp"
|
|
|
+ android:text="User ID"
|
|
|
+ android:visibility="gone"
|
|
|
+ tools:visibility="visible"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/tv3"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+ <androidx.appcompat.widget.AppCompatEditText
|
|
|
+ android:id="@+id/etInputID"
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/tv4"
|
|
|
+ app:layout_constraintBottom_toBottomOf="@+id/tv4"
|
|
|
+ app:layout_constraintStart_toEndOf="@+id/tv4"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ android:layout_marginEnd="15dp"
|
|
|
+ android:textSize="16dp"
|
|
|
+ android:visibility="gone"
|
|
|
+ tools:visibility="visible"
|
|
|
+ android:inputType="number"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:textColor="#435568"
|
|
|
+ android:textColorHint="#AFB9C3"
|
|
|
+ android:hint="Please enter"
|
|
|
+ android:background="@drawable/trans_bg"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="wrap_content"/>
|
|
|
+
|
|
|
+ <View
|
|
|
+ android:id="@+id/view2"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/etInputID"
|
|
|
+ android:layout_marginTop="10dp"
|
|
|
+ android:visibility="gone"
|
|
|
+ tools:visibility="visible"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginEnd="15dp"
|
|
|
+ android:background="#33AFB9C3"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="1dp"/>
|
|
|
+
|
|
|
+
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
+ android:id="@+id/recyclerView"
|
|
|
+ app:layout_constraintTop_toBottomOf="@+id/view2"
|
|
|
+ app:layout_constraintBottom_toTopOf="@+id/tvExchange"
|
|
|
+ android:layout_marginTop="15dp"
|
|
|
+ android:layout_marginBottom="48dp"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="0dp"/>
|
|
|
+
|
|
|
+
|
|
|
+ <com.swago.baseswago.cusview.BoldTextView
|
|
|
+ android:id="@+id/tvExchange"
|
|
|
+ android:textSize="15dp"
|
|
|
+ android:textColor="#fff"
|
|
|
+ android:text="@string/exchange"
|
|
|
+ android:gravity="center"
|
|
|
+ android:background="@drawable/shape_ff56b7_37"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ android:layout_marginStart="15dp"
|
|
|
+ android:layout_marginEnd="15dp"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ android:layout_marginBottom="30dp"
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="48dp"/>
|
|
|
+
|
|
|
+</androidx.constraintlayout.widget.ConstraintLayout>
|