2018-11-24 18:51:41 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
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"
|
|
|
|
android:layout_height="56dp"
|
2019-08-26 20:54:20 +02:00
|
|
|
android:background="?selectableItemBackground"
|
2018-11-24 18:51:41 +01:00
|
|
|
android:orientation="horizontal"
|
|
|
|
android:paddingStart="24dp"
|
|
|
|
android:paddingLeft="24dp"
|
|
|
|
android:paddingEnd="24dp"
|
2019-02-14 22:23:52 +01:00
|
|
|
android:paddingRight="24dp"
|
|
|
|
tools:context=".ui.modules.account.AccountItem">
|
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"
|
|
|
|
android:layout_centerVertical="true"
|
2019-08-26 20:54:20 +02:00
|
|
|
app:srcCompat="@drawable/ic_all_account"
|
2019-09-04 21:19:05 +02:00
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:tint="@color/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"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignTop="@+id/accountItemImage"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_toEndOf="@id/accountItemImage"
|
|
|
|
android:layout_toRightOf="@id/accountItemImage"
|
2019-04-04 13:00:07 +02:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textSize="16sp"
|
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"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/accountItemName"
|
|
|
|
android:layout_marginStart="20dp"
|
|
|
|
android:layout_marginLeft="20dp"
|
|
|
|
android:layout_marginTop="3dp"
|
|
|
|
android:layout_toEndOf="@id/accountItemImage"
|
|
|
|
android:layout_toRightOf="@id/accountItemImage"
|
|
|
|
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"
|
|
|
|
tools:text="@tools:sample/lorem/random" />
|
2018-11-24 18:51:41 +01:00
|
|
|
</RelativeLayout>
|