chinwag-android/app/src/main/res/layout/item_account.xml

56 lines
1.9 KiB
XML
Raw Normal View History

2017-01-31 15:51:02 +11:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-03-09 07:07:49 +11:00
android:paddingLeft="16dp"
android:paddingRight="16dp"
2017-01-31 15:51:02 +11:00
android:id="@+id/account_container">
<RelativeLayout
2017-03-09 07:07:49 +11:00
android:paddingTop="8dp"
2017-01-31 15:51:02 +11:00
android:layout_width="match_parent"
android:layout_height="wrap_content">
2017-03-08 00:32:07 +11:00
<ImageView
2017-03-09 07:07:49 +11:00
android:layout_width="48dp"
android:layout_height="48dp"
2017-01-31 15:51:02 +11:00
android:id="@+id/account_avatar"
2017-03-08 00:32:07 +11:00
android:layout_marginRight="10dp" />
2017-01-31 15:51:02 +11:00
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
2017-03-09 07:07:49 +11:00
2017-01-31 15:51:02 +11:00
android:layout_centerVertical="true"
android:layout_toRightOf="@id/account_avatar">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/account_display_name"
2017-03-09 07:07:49 +11:00
android:text="Display name"
2017-03-08 00:32:07 +11:00
android:textColor="?android:textColorPrimary"
2017-01-31 15:51:02 +11:00
android:textStyle="normal|bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2017-03-09 07:07:49 +11:00
android:text="\@username"
2017-03-08 00:32:07 +11:00
android:textColor="?android:textColorSecondary"
2017-01-31 15:51:02 +11:00
android:id="@+id/account_username" />
</LinearLayout>
</RelativeLayout>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/account_note"
2017-03-08 00:32:07 +11:00
android:paddingTop="4dp"
2017-03-09 07:07:49 +11:00
android:paddingBottom="8dp"
2017-03-08 00:32:07 +11:00
android:textColor="?android:textColorTertiary" />
2017-01-31 15:51:02 +11:00
</LinearLayout>