All checks were successful
Auto Tag on Version Change / check-version (push) Successful in 3s
141 lines
5.7 KiB
XML
141 lines
5.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout
|
|
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"
|
|
android:orientation="vertical">
|
|
|
|
<!-- Header row — same look as before -->
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingVertical="10dp">
|
|
|
|
<com.google.android.material.imageview.ShapeableImageView
|
|
android:id="@+id/ivContactPhoto"
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
app:shapeAppearanceOverlay="@style/ShapeAppearance.Circle"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
android:scaleType="centerCrop" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvContactName"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
android:textAppearance="?attr/textAppearanceBodyMedium"
|
|
android:textStyle="bold"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
app:layout_constraintStart_toEndOf="@id/ivContactPhoto"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@id/ivContactPhoto" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvContactBank"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginTop="2dp"
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
|
android:textColor="?attr/colorOnSurfaceVariant"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
app:layout_constraintStart_toEndOf="@id/ivContactPhoto"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tvContactName" />
|
|
|
|
<TextView
|
|
android:id="@+id/tvContactAccount"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginTop="1dp"
|
|
android:textAppearance="?attr/textAppearanceLabelSmall"
|
|
android:textColor="?attr/colorOnSurfaceVariant"
|
|
android:maxLines="1"
|
|
android:ellipsize="end"
|
|
app:layout_constraintStart_toEndOf="@id/ivContactPhoto"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/tvContactBank"
|
|
app:layout_constraintBottom_toBottomOf="@id/ivContactPhoto" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<!-- Divider + expanded section, hidden by default -->
|
|
<View
|
|
android:id="@+id/dividerExpand"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:layout_marginHorizontal="16dp"
|
|
android:background="?attr/colorOutlineVariant"
|
|
android:visibility="gone" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/expandedSection"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp"
|
|
android:visibility="gone">
|
|
|
|
<TextView
|
|
android:id="@+id/tvRealName"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="?attr/textAppearanceLabelMedium"
|
|
android:textColor="?attr/colorOnSurfaceVariant"
|
|
android:paddingBottom="8dp" />
|
|
|
|
<!-- Action buttons -->
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnTransferContact"
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:text="@string/transfer"
|
|
app:icon="@drawable/ic_nav_generic" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnEditContact"
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="6dp"
|
|
android:text="@string/contact_edit"
|
|
app:icon="@drawable/ic_edit" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/btnDeleteContact"
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginStart="6dp"
|
|
android:text="@string/contact_delete"
|
|
android:textColor="?attr/colorError"
|
|
app:strokeColor="?attr/colorError"
|
|
app:icon="@drawable/ic_delete"
|
|
app:iconTint="?attr/colorError" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|