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"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/follow_icon"
|
|
|
|
app:srcCompat="@drawable/ic_followed"
|
|
|
|
android:paddingTop="@dimen/notification_icon_vertical_padding"
|
|
|
|
android:paddingBottom="@dimen/notification_icon_vertical_padding"
|
|
|
|
android:paddingRight="@dimen/status_avatar_padding"
|
|
|
|
android:paddingLeft="@dimen/follow_icon_left_padding"
|
|
|
|
android:tint="?attr/notification_icon_tint" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/notification_text"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toRightOf="@id/follow_icon" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<RelativeLayout
|
2017-01-23 16:19:30 +11:00
|
|
|
android:layout_width="match_parent"
|
2017-02-27 12:14:13 +11:00
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<com.android.volley.toolbox.NetworkImageView
|
|
|
|
android:layout_width="64dp"
|
|
|
|
android:layout_height="64dp"
|
|
|
|
android:id="@+id/notification_avatar"
|
|
|
|
android:scaleType="fitCenter"
|
2017-03-01 16:36:15 +11:00
|
|
|
android:paddingLeft="@dimen/status_avatar_padding"
|
|
|
|
android:paddingRight="@dimen/status_avatar_padding"
|
|
|
|
android:paddingBottom="@dimen/status_avatar_padding"
|
2017-02-27 12:14:13 +11:00
|
|
|
android:layout_alignParentLeft="true" />
|
|
|
|
|
2017-03-01 16:36:15 +11:00
|
|
|
<Button
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/notification_follow_button"
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:text="@string/action_follow" />
|
|
|
|
|
2017-02-27 12:14:13 +11:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="64dp"
|
|
|
|
android:orientation="vertical"
|
2017-03-01 16:36:15 +11:00
|
|
|
android:layout_toRightOf="@id/notification_avatar"
|
|
|
|
android:layout_toLeftOf="@id/notification_follow_button">
|
2017-02-27 12:14:13 +11:00
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/notification_display_name"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small"
|
|
|
|
android:textStyle="normal|bold" />
|
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
<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
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
2017-01-23 16:19:30 +11:00
|
|
|
|
2017-02-27 12:14:13 +11:00
|
|
|
</LinearLayout>
|