wulkanowy-mod/app/src/main/res/layout/item_account.xml
2018-11-24 18:51:41 +01:00

49 lines
1.9 KiB
XML

<?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"
android:layout_width="match_parent"
android:layout_height="56dp"
android:background="?attr/selectableItemBackground"
android:orientation="horizontal"
android:paddingStart="24dp"
android:paddingLeft="24dp"
android:paddingEnd="24dp"
android:paddingRight="24dp">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/accountItemImage"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_centerVertical="true"
android:background="@drawable/ic_account_circular_border"
android:tint="#7E7E7E"
app:srcCompat="@drawable/ic_all_account_24dp" />
<androidx.appcompat.widget.AppCompatTextView
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"
android:text="@string/app_name"
android:textSize="16sp" />
<androidx.appcompat.widget.AppCompatTextView
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"
android:text="@string/app_name"
android:textSize="12sp" />
</RelativeLayout>