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

77 lines
2.7 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<!--
* This is the for follow notifications, the layout for the follows/following listings on account
* pages are instead in item_account.xml.
-->
<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"
2017-03-08 06:42:01 +11:00
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingBottom="10dp"
android:orientation="vertical">
<RelativeLayout
android:layout_width="match_parent"
2017-03-08 06:42:01 +11:00
android:layout_marginTop="8dp"
android:layout_height="wrap_content">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/follow_icon"
2017-03-08 06:42:01 +11:00
app:srcCompat="@drawable/ic_person_add_24dp"
android:paddingRight="10dp"
android:paddingLeft="24dp"
android:tint="?attr/colorAccent" />
<TextView
android:id="@+id/notification_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-03-08 06:42:01 +11:00
android:textColor="?android:textColorTertiary"
android:layout_centerVertical="true"
2017-03-08 06:42:01 +11:00
android:maxLines="1"
android:ellipsize="end"
android:layout_toRightOf="@id/follow_icon" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
2017-03-08 06:42:01 +11:00
android:layout_marginTop="4dp"
android:layout_height="wrap_content">
2017-03-08 06:42:01 +11:00
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:id="@+id/notification_avatar"
android:scaleType="fitCenter"
2017-03-08 06:42:01 +11:00
android:layout_marginLeft="8dp"
android:layout_marginRight="10dp"
android:layout_alignParentLeft="true" />
<LinearLayout
android:layout_width="wrap_content"
2017-03-08 06:42:01 +11:00
android:layout_height="wrap_content"
android:orientation="vertical"
2017-03-08 06:42:01 +11:00
android:layout_toRightOf="@id/notification_avatar">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/notification_display_name"
2017-03-08 06:42:01 +11:00
android:textColor="?android:textColorPrimary"
android:textStyle="normal|bold" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/notification_username"
android:textColor="?android:textColorSecondary" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>