2017-04-29 05:52:14 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-08-05 10:52:58 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2017-04-29 05:52:14 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="72dp"
|
2017-08-05 10:52:58 +02:00
|
|
|
android:gravity="center_vertical"
|
2017-04-29 05:52:14 +02:00
|
|
|
android:paddingLeft="16dp"
|
2017-08-05 10:52:58 +02:00
|
|
|
android:paddingRight="16dp">
|
2017-04-29 05:52:14 +02:00
|
|
|
|
2018-07-30 15:36:22 +02:00
|
|
|
<com.keylesspalace.tusky.view.RoundedImageView
|
2017-08-05 10:52:58 +02:00
|
|
|
android:id="@+id/follow_request_avatar"
|
2017-04-29 05:52:14 +02:00
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_alignParentStart="true"
|
|
|
|
android:layout_centerVertical="true"
|
2017-08-05 10:52:58 +02:00
|
|
|
android:layout_marginEnd="24dp"
|
2017-04-29 05:52:14 +02:00
|
|
|
android:contentDescription="@string/action_view_profile" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_toEndOf="@id/follow_request_avatar"
|
2017-08-05 10:52:58 +02:00
|
|
|
android:layout_toStartOf="@id/follow_request_accept"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:orientation="vertical">
|
2017-04-29 05:52:14 +02:00
|
|
|
|
2018-05-10 11:16:56 +02:00
|
|
|
<android.support.text.emoji.widget.EmojiTextView
|
2017-08-05 10:52:58 +02:00
|
|
|
android:id="@+id/follow_request_display_name"
|
2017-04-29 05:52:14 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
2017-08-05 10:52:58 +02:00
|
|
|
android:maxLines="1"
|
2017-04-29 05:52:14 +02:00
|
|
|
android:textColor="?android:textColorPrimary"
|
2017-12-01 21:52:10 +01:00
|
|
|
android:textSize="?attr/status_text_large"
|
2017-08-05 10:52:58 +02:00
|
|
|
android:textStyle="normal|bold"
|
|
|
|
tools:text="Display name" />
|
2017-04-29 05:52:14 +02:00
|
|
|
|
|
|
|
<TextView
|
2017-08-05 10:52:58 +02:00
|
|
|
android:id="@+id/follow_request_username"
|
2017-04-29 05:52:14 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
2017-08-05 10:52:58 +02:00
|
|
|
android:maxLines="1"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
2017-12-01 21:52:10 +01:00
|
|
|
android:textSize="?attr/status_text_medium"
|
2017-08-05 10:52:58 +02:00
|
|
|
tools:text="\@username" />
|
2017-04-29 05:52:14 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/follow_request_accept"
|
2017-08-05 10:52:58 +02:00
|
|
|
style="?attr/image_button_style"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_marginStart="12dp"
|
2017-04-29 05:52:14 +02:00
|
|
|
android:layout_toStartOf="@id/follow_request_reject"
|
2017-08-05 10:52:58 +02:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/action_accept"
|
|
|
|
android:padding="4dp"
|
|
|
|
app:srcCompat="@drawable/ic_check_24dp" />
|
2017-04-29 05:52:14 +02:00
|
|
|
|
|
|
|
<ImageButton
|
2018-02-16 22:12:56 +01:00
|
|
|
android:id="@+id/follow_request_reject"
|
2017-08-05 10:52:58 +02:00
|
|
|
style="?attr/image_button_style"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
2017-04-29 05:52:14 +02:00
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_centerVertical="true"
|
2017-08-05 10:52:58 +02:00
|
|
|
android:layout_marginStart="12dp"
|
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/action_reject"
|
|
|
|
android:padding="4dp"
|
|
|
|
app:srcCompat="@drawable/ic_reject_24dp" />
|
2017-04-29 05:52:14 +02:00
|
|
|
|
|
|
|
</RelativeLayout>
|