98 lines
4.3 KiB
XML
98 lines
4.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout 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="wrap_content">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/card_wallet"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:background="@android:color/white"
|
|
android:elevation="3dp">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="12dp"
|
|
android:paddingBottom="12dp"
|
|
android:paddingStart="16dp"
|
|
android:paddingEnd="16dp"
|
|
android:animateLayoutChanges="true"
|
|
android:clipToPadding="false">
|
|
|
|
<com.tangem.tap.features.wallet.ui.images.CurrencyIconView
|
|
android:id="@+id/iv_currency"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_token_letter"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="2dp"
|
|
android:textColor="@android:color/white"
|
|
android:textSize="25sp"
|
|
android:textStyle="bold"
|
|
app:layout_constraintBottom_toBottomOf="@id/iv_currency"
|
|
app:layout_constraintEnd_toEndOf="@id/iv_currency"
|
|
app:layout_constraintStart_toStartOf="@id/iv_currency"
|
|
app:layout_constraintTop_toTopOf="@id/iv_currency"
|
|
tools:text="J" />
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_blockchain"
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:padding="2dp"
|
|
android:translationX="4dp"
|
|
android:translationY="-4dp"
|
|
android:background="@drawable/shape_circle"
|
|
android:backgroundTint="@color/backgroundWhite"
|
|
android:contentDescription="@null"
|
|
android:visibility="gone"
|
|
app:layout_constraintTop_toTopOf="@id/iv_currency"
|
|
app:layout_constraintEnd_toEndOf="@id/iv_currency"
|
|
tools:src="@drawable/ic_eth"
|
|
tools:visibility="visible" />
|
|
|
|
<View
|
|
android:id="@+id/badge_custom_balance"
|
|
android:layout_width="10dp"
|
|
android:layout_height="10dp"
|
|
android:background="@drawable/shape_badge_custom_currency"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="@id/iv_currency"
|
|
app:layout_constraintEnd_toEndOf="@id/iv_currency"
|
|
tools:visibility="visible" />
|
|
|
|
<include
|
|
layout="@layout/item_currency_wallet_content"
|
|
android:id="@+id/l_content"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginStart="8dp"
|
|
android:visibility="gone"
|
|
app:layout_constraintStart_toEndOf="@id/iv_currency"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
tools:visibility="visible" />
|
|
|
|
<include
|
|
layout="@layout/item_currency_wallet_shimmer"
|
|
android:id="@+id/l_shimmer"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginStart="8dp"
|
|
app:layout_constraintStart_toEndOf="@id/iv_currency"
|
|
app:layout_constraintEnd_toEndOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</com.google.android.material.card.MaterialCardView>
|
|
</FrameLayout>
|