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

71 lines
2.7 KiB
XML
Raw Normal View History

2017-04-22 09:02:04 +10:00
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2017-04-22 09:02:04 +10:00
android:layout_width="match_parent"
android:layout_height="72dp"
android:gravity="center_vertical"
2017-04-22 09:02:04 +10:00
android:paddingLeft="16dp"
android:paddingRight="16dp">
2017-04-22 09:02:04 +10:00
<com.pkmmte.view.CircularImageView
android:id="@+id/muted_user_avatar"
2017-04-22 09:02:04 +10:00
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:layout_marginEnd="24dp"
2017-04-22 09:02:04 +10:00
android:layout_marginRight="24dp"
android:contentDescription="@string/action_view_profile" />
2017-04-22 09:02:04 +10:00
<ImageButton
android:id="@+id/muted_user_unmute"
style="?attr/image_button_style"
android:layout_width="32dp"
android:layout_height="32dp"
android:layout_alignParentEnd="true"
2017-04-22 09:02:04 +10:00
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_gravity="center_vertical"
android:layout_marginLeft="12dp"
android:layout_marginStart="12dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/action_unmute"
android:padding="4dp"
app:srcCompat="@drawable/ic_unmute_24dp" />
2017-04-22 09:02:04 +10:00
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_toEndOf="@id/muted_user_avatar"
android:layout_toLeftOf="@id/muted_user_unmute"
2017-04-22 09:02:04 +10:00
android:layout_toRightOf="@id/muted_user_avatar"
android:layout_toStartOf="@id/muted_user_unmute"
android:gravity="center_vertical"
android:orientation="vertical">
2017-04-22 09:02:04 +10:00
<TextView
android:id="@+id/muted_user_display_name"
2017-04-22 09:02:04 +10:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
2017-04-22 09:02:04 +10:00
android:textColor="?android:textColorPrimary"
android:textSize="16sp"
android:textStyle="normal|bold"
tools:text="Display name" />
2017-04-22 09:02:04 +10:00
<TextView
android:id="@+id/muted_user_username"
2017-04-22 09:02:04 +10:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
android:textColor="?android:textColorSecondary"
2017-04-22 09:02:04 +10:00
android:textSize="14sp"
tools:text="\@username" />
2017-04-22 09:02:04 +10:00
</LinearLayout>
</RelativeLayout>