forked from thijooree/android
449 lines
18 KiB
XML
449 lines
18 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.core.widget.NestedScrollView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingBottom="24dp">
|
|
|
|
<com.google.android.material.bottomsheet.BottomSheetDragHandleView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content" />
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
android:id="@+id/ivPhoto"
|
|
android:layout_width="112dp"
|
|
android:layout_height="112dp"
|
|
android:layout_gravity="center_horizontal"
|
|
android:scaleType="centerCrop"
|
|
app:shapeAppearanceOverlay="@style/ShapeAppearance.Circle" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:gravity="center_horizontal"
|
|
android:paddingHorizontal="24dp"
|
|
android:textAppearance="?attr/textAppearanceHeadlineSmall"
|
|
android:textColor="?attr/colorOnSurface" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/actionRow"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="16dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/actionTransfer"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnTransfer"
|
|
style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:contentDescription="@string/transfer"
|
|
app:icon="@drawable/ic_send"
|
|
android:insetLeft="0dp"
|
|
android:insetTop="0dp"
|
|
android:insetRight="0dp"
|
|
android:insetBottom="0dp"
|
|
android:padding="0dp"
|
|
app:iconGravity="textStart"
|
|
app:iconPadding="0dp"
|
|
app:iconSize="24dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:gravity="center"
|
|
android:text="@string/transfer"
|
|
android:textAppearance="?attr/textAppearanceLabelMedium"
|
|
android:textColor="?attr/colorOnSurface" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/actionQr"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnQr"
|
|
style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:contentDescription="@string/contact_qr"
|
|
app:icon="@drawable/ic_qr_code"
|
|
android:insetLeft="0dp"
|
|
android:insetTop="0dp"
|
|
android:insetRight="0dp"
|
|
android:insetBottom="0dp"
|
|
android:padding="0dp"
|
|
app:iconGravity="textStart"
|
|
app:iconPadding="0dp"
|
|
app:iconSize="24dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvQrLabel"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:gravity="center"
|
|
android:text="@string/contact_qr"
|
|
android:textAppearance="?attr/textAppearanceLabelMedium"
|
|
android:textColor="?attr/colorOnSurface" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/actionEdit"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnEdit"
|
|
style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:contentDescription="@string/contact_edit"
|
|
app:icon="@drawable/ic_edit"
|
|
android:insetLeft="0dp"
|
|
android:insetTop="0dp"
|
|
android:insetRight="0dp"
|
|
android:insetBottom="0dp"
|
|
android:padding="0dp"
|
|
app:iconGravity="textStart"
|
|
app:iconPadding="0dp"
|
|
app:iconSize="24dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:gravity="center"
|
|
android:text="@string/contact_edit"
|
|
android:textAppearance="?attr/textAppearanceLabelMedium"
|
|
android:textColor="?attr/colorOnSurface" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/actionDelete"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:gravity="center_horizontal"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnDelete"
|
|
style="@style/Widget.Material3.Button.IconButton.Filled.Tonal"
|
|
android:layout_width="56dp"
|
|
android:layout_height="56dp"
|
|
android:contentDescription="@string/contact_delete"
|
|
app:backgroundTint="?attr/colorErrorContainer"
|
|
app:icon="@drawable/ic_delete"
|
|
android:insetLeft="0dp"
|
|
android:insetTop="0dp"
|
|
android:insetRight="0dp"
|
|
android:insetBottom="0dp"
|
|
android:padding="0dp"
|
|
app:iconGravity="textStart"
|
|
app:iconPadding="0dp"
|
|
app:iconSize="24dp"
|
|
app:iconTint="?attr/colorOnErrorContainer" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="4dp"
|
|
android:gravity="center"
|
|
android:text="@string/contact_delete"
|
|
android:textAppearance="?attr/textAppearanceLabelMedium"
|
|
android:textColor="?attr/colorError" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<com.google.android.material.divider.MaterialDivider
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
android:layout_marginBottom="8dp" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/rowAccount"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:minHeight="64dp"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="24dp"
|
|
android:paddingVertical="8dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:importantForAccessibility="no"
|
|
android:src="@drawable/ic_manage_card"
|
|
app:tint="?attr/colorOnSurfaceVariant" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="24dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/tvAccount"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceBodyLarge"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textIsSelectable="false" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/contact_account_number"
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
android:textColor="?attr/colorOnSurfaceVariant" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageButton
|
|
android:id="@+id/btnShareAccount"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/contact_share_account"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_share"
|
|
app:tint="?attr/colorOnSurfaceVariant" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/btnCopyAccount"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/contact_copy_account"
|
|
android:padding="8dp"
|
|
android:src="@drawable/ic_copy"
|
|
app:tint="?attr/colorOnSurfaceVariant" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/rowRealName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:minHeight="64dp"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="24dp"
|
|
android:paddingVertical="8dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:importantForAccessibility="no"
|
|
android:src="@drawable/ic_contacts"
|
|
app:tint="?attr/colorOnSurfaceVariant" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="24dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/tvRealName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceBodyLarge"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textIsSelectable="false" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/contact_account_name"
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
android:textColor="?attr/colorOnSurfaceVariant" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/rowCurrency"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:minHeight="64dp"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="24dp"
|
|
android:paddingVertical="8dp">
|
|
|
|
<ImageView
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:importantForAccessibility="no"
|
|
android:src="@drawable/ic_currency"
|
|
app:tint="?attr/colorOnSurfaceVariant" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="24dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/tvCurrency"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceBodyLarge"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textIsSelectable="false" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/contact_currency"
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
android:textColor="?attr/colorOnSurfaceVariant" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/rowBank"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:minHeight="64dp"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="24dp"
|
|
android:paddingVertical="8dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/ivBankIcon"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:importantForAccessibility="no"
|
|
android:src="@drawable/ic_nav_finances"
|
|
app:tint="?attr/colorOnSurfaceVariant" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="24dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/tvBank"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceBodyLarge"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textIsSelectable="false" />
|
|
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/contact_bank"
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
android:textColor="?attr/colorOnSurfaceVariant" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/sourceSection"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:visibility="gone">
|
|
|
|
<com.google.android.material.divider.MaterialDivider
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginVertical="8dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="center_vertical"
|
|
android:minHeight="56dp"
|
|
android:orientation="horizontal"
|
|
android:paddingHorizontal="24dp"
|
|
android:paddingVertical="8dp">
|
|
|
|
<ImageView
|
|
android:id="@+id/ivSourceIcon"
|
|
android:layout_width="24dp"
|
|
android:layout_height="24dp"
|
|
android:importantForAccessibility="no" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="24dp"
|
|
android:layout_weight="1"
|
|
android:orientation="vertical">
|
|
|
|
<TextView
|
|
android:id="@+id/tvSource"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceBodyMedium"
|
|
android:textColor="?attr/colorOnSurfaceVariant" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvSourceBank"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
android:textColor="?attr/colorOnSurfaceVariant" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.core.widget.NestedScrollView>
|