2018-11-24 18:51:41 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-05-01 17:38:19 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-11-24 18:51:41 +01:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-02-14 22:23:52 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2018-11-24 18:51:41 +01:00
|
|
|
android:layout_width="match_parent"
|
2020-06-12 21:35:51 +02:00
|
|
|
android:layout_height="wrap_content"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:background="?selectableItemBackground"
|
2021-01-29 21:53:46 +01:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2018-11-24 18:51:41 +01:00
|
|
|
android:orientation="horizontal"
|
2020-06-12 21:35:51 +02:00
|
|
|
android:paddingHorizontal="16dp"
|
2021-01-29 21:53:46 +01:00
|
|
|
android:paddingVertical="8dp"
|
2020-05-01 17:38:19 +02:00
|
|
|
tools:context=".ui.modules.account.AccountAdapter">
|
2018-11-24 18:51:41 +01:00
|
|
|
|
2019-08-26 20:54:20 +02:00
|
|
|
<ImageView
|
2018-11-24 18:51:41 +01:00
|
|
|
android:id="@+id/accountItemImage"
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2020-05-01 17:38:19 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2019-09-04 21:19:05 +02:00
|
|
|
tools:ignore="ContentDescription"
|
2021-03-03 00:34:25 +01:00
|
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
|
|
|
|
<com.mikhaellopez.circularimageview.CircularImageView
|
|
|
|
android:id="@+id/account_item_check"
|
|
|
|
android:layout_width="20dp"
|
|
|
|
android:layout_height="20dp"
|
|
|
|
android:layout_marginStart="28dp"
|
|
|
|
android:layout_marginTop="28dp"
|
|
|
|
app:civ_border_width="1dp"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/accountItemImage"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/accountItemImage"
|
|
|
|
app:srcCompat="@drawable/ic_all_round_check"
|
|
|
|
app:tint="?colorPrimary" />
|
2018-11-24 18:51:41 +01:00
|
|
|
|
2019-08-26 20:54:20 +02:00
|
|
|
<TextView
|
2018-11-24 18:51:41 +01:00
|
|
|
android:id="@+id/accountItemName"
|
2020-05-01 17:38:19 +02:00
|
|
|
android:layout_width="0dp"
|
2018-11-24 18:51:41 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-06-12 21:35:51 +02:00
|
|
|
android:layout_marginStart="16dp"
|
2021-03-03 00:34:25 +01:00
|
|
|
android:layout_marginEnd="16dp"
|
2019-04-04 13:00:07 +02:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textSize="16sp"
|
2020-05-01 17:38:19 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/accountItemImage"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/accountItemImage"
|
2019-08-26 20:54:20 +02:00
|
|
|
tools:text="@tools:sample/full_names" />
|
2018-11-24 18:51:41 +01:00
|
|
|
|
2019-08-26 20:54:20 +02:00
|
|
|
<TextView
|
2018-11-24 18:51:41 +01:00
|
|
|
android:id="@+id/accountItemSchool"
|
2020-05-01 17:38:19 +02:00
|
|
|
android:layout_width="0dp"
|
2018-11-24 18:51:41 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-06-12 21:35:51 +02:00
|
|
|
android:layout_marginStart="16dp"
|
2018-11-24 18:51:41 +01:00
|
|
|
android:layout_marginTop="3dp"
|
2021-03-03 00:34:25 +01:00
|
|
|
android:layout_marginEnd="16dp"
|
2018-11-24 18:51:41 +01:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
2019-04-08 00:18:45 +02:00
|
|
|
android:textColor="?android:textColorSecondary"
|
2019-04-04 13:00:07 +02:00
|
|
|
android:textSize="12sp"
|
2020-05-01 17:38:19 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/accountItemImage"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountItemName"
|
2019-04-04 13:00:07 +02:00
|
|
|
tools:text="@tools:sample/lorem/random" />
|
2020-06-12 21:35:51 +02:00
|
|
|
|
|
|
|
<TextView
|
2021-01-29 21:53:46 +01:00
|
|
|
android:id="@+id/accountItemAccountType"
|
2020-06-12 21:35:51 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="3dp"
|
2021-03-03 00:34:25 +01:00
|
|
|
android:layout_marginEnd="16dp"
|
2020-06-12 21:35:51 +02:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:textSize="12sp"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/accountItemImage"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/accountItemSchool"
|
|
|
|
tools:text="Tryb API mobilne"
|
|
|
|
tools:visibility="visible" />
|
2020-05-01 17:38:19 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|