2017-01-23 16:19:30 +11:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-02-27 12:14:13 +11:00
|
|
|
<!--
|
|
|
|
* 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"
|
2017-01-23 16:19:30 +11:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
android:layout_width="match_parent"
|
2017-02-27 12:14:13 +11:00
|
|
|
android:layout_height="wrap_content"
|
2017-03-08 06:42:01 +11:00
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:paddingBottom="10dp"
|
2017-02-27 12:14:13 +11:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
2017-03-08 06:42:01 +11:00
|
|
|
android:layout_marginTop="8dp"
|
2017-02-27 12:14:13 +11:00
|
|
|
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"
|
2017-04-12 14:21:52 +10:00
|
|
|
android:tint="?attr/colorAccent"
|
2017-04-13 11:54:37 +10:00
|
|
|
android:contentDescription="@null" />
|
2017-02-27 12:14:13 +11:00
|
|
|
|
|
|
|
<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"
|
2017-02-27 12:14:13 +11:00
|
|
|
android:layout_centerVertical="true"
|
2017-03-08 06:42:01 +11:00
|
|
|
android:maxLines="1"
|
|
|
|
android:ellipsize="end"
|
2017-02-27 12:14:13 +11:00
|
|
|
android:layout_toRightOf="@id/follow_icon" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
2017-01-23 16:19:30 +11:00
|
|
|
android:layout_width="match_parent"
|
2017-03-08 06:42:01 +11:00
|
|
|
android:layout_marginTop="4dp"
|
2017-02-27 12:14:13 +11:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
2017-03-08 06:42:01 +11:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="40dp"
|
|
|
|
android:layout_height="40dp"
|
2017-02-27 12:14:13 +11:00
|
|
|
android:id="@+id/notification_avatar"
|
|
|
|
android:scaleType="fitCenter"
|
2017-03-08 06:42:01 +11:00
|
|
|
android:layout_marginLeft="8dp"
|
|
|
|
android:layout_marginRight="10dp"
|
2017-04-12 14:21:52 +10:00
|
|
|
android:layout_alignParentLeft="true"
|
2017-04-13 11:54:37 +10:00
|
|
|
android:contentDescription="@string/action_view_profile" />
|
2017-02-27 12:14:13 +11:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
2017-03-08 06:42:01 +11:00
|
|
|
android:layout_height="wrap_content"
|
2017-02-27 12:14:13 +11:00
|
|
|
android:orientation="vertical"
|
2017-03-08 06:42:01 +11:00
|
|
|
android:layout_toRightOf="@id/notification_avatar">
|
2017-02-27 12:14:13 +11:00
|
|
|
|
|
|
|
<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"
|
2017-02-27 12:14:13 +11:00
|
|
|
android:textStyle="normal|bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/notification_username"
|
2017-03-07 21:02:41 +11:00
|
|
|
android:textColor="?android:textColorSecondary" />
|
2017-02-27 12:14:13 +11:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
2017-01-23 16:19:30 +11:00
|
|
|
|
2017-02-27 12:14:13 +11:00
|
|
|
</LinearLayout>
|