<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/root_layout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="?riotx_bottom_sheet_background"
    android:orientation="vertical"
    android:paddingTop="8dp"
    android:paddingBottom="8dp">


    <TextView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/layout_horizontal_margin"
        android:layout_marginEnd="@dimen/layout_horizontal_margin"
        android:layout_marginBottom="8dp"
        android:text="@string/room_widget_permission_title"
        android:textColor="?riotx_text_primary"
        android:textSize="20sp"
        android:textStyle="bold" />

    <TextView
        android:id="@+id/widgetPermissionHeader2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/layout_horizontal_margin"
        android:layout_marginEnd="@dimen/layout_horizontal_margin"
        android:layout_marginBottom="8dp"
        android:text="@string/room_widget_permission_added_by"
        android:textColor="?riotx_text_secondary"
        android:textSize="16sp" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/layout_horizontal_margin"
        android:layout_marginTop="@dimen/layout_vertical_margin"
        android:layout_marginEnd="@dimen/layout_horizontal_margin"
        android:orientation="horizontal">

        <ImageView
            android:id="@+id/widgetPermissionOwnerAvatar"
            android:layout_width="40dp"
            android:layout_height="40dp"
            android:layout_gravity="center"
            tools:src="@tools:sample/avatars" />

        <LinearLayout
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_marginStart="8dp"
            android:layout_weight="1"
            android:orientation="vertical">

            <TextView
                android:id="@+id/widgetPermissionOwnerDisplayName"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textAlignment="center"
                android:textColor="?riotx_text_primary"
                android:textSize="18sp"
                android:textStyle="bold"
                tools:text="User name" />

            <TextView
                android:id="@+id/widgetPermissionOwnerId"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textAlignment="center"
                android:textColor="?riotx_text_secondary"
                android:textSize="14sp"
                tools:text="\@foo:matrix.org" />
        </LinearLayout>
    </LinearLayout>

    <TextView
        android:id="@+id/widgetPermissionSharedInfo"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginStart="@dimen/layout_horizontal_margin"
        android:layout_marginTop="@dimen/layout_vertical_margin_big"
        android:layout_marginEnd="@dimen/layout_horizontal_margin"
        android:layout_marginBottom="8dp"
        android:textColor="?riotx_text_secondary"
        android:textSize="16sp"
        tools:text="@string/room_widget_permission_shared_info_title" />

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/layout_vertical_margin_big"
        android:gravity="end"
        android:orientation="horizontal">

        <com.google.android.material.button.MaterialButton
            android:id="@+id/widgetPermissionDecline"
            style="@style/VectorButtonStyleDestructive"
            android:layout_marginEnd="@dimen/layout_vertical_margin"
            android:text="@string/decline"
            android:textAllCaps="true" />

        <com.google.android.material.button.MaterialButton
            android:id="@+id/widgetPermissionContinue"
            style="@style/VectorButtonStylePositive"
            android:layout_marginEnd="@dimen/layout_vertical_margin"
            android:minWidth="160dp"
            android:text="@string/_continue"
            android:textAllCaps="true" />

    </LinearLayout>

</LinearLayout>