<?xml version="1.0" encoding="utf-8"?>
<merge
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    tools:context="org.thoughtcrime.securesms.components.WebxdcView">

    <LinearLayout
        android:id="@+id/webxdc_container"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:clickable="false"
        android:focusable="false"
        android:gravity="center_vertical"
        android:orientation="vertical">

        <!-- android:padding="0.1dp" is needed to remove transparent background -->
        <com.google.android.material.imageview.ShapeableImageView
            android:id="@+id/webxdc_icon"
            android:padding="0.1dp"
            android:layout_marginTop="2dp"
            android:layout_width="128dp"
            android:layout_height="128dp"
            android:scaleType="centerCrop"
            app:strokeColor="@null"
            app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.App.CornerSize10Percent" />

        <TextView
            android:id="@+id/webxdc_app_name"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            style="@style/Signal.Text.Body"
            android:singleLine="true"
            android:maxLines="1"
            android:ellipsize="end"
            android:clickable="false"
            android:textColor="?conversation_item_incoming_text_primary_color"
            android:textStyle="bold"
            tools:text="Great App" />

        <TextView
            android:id="@+id/webxdc_subtitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            style="@style/Signal.Text.Body"
            android:singleLine="true"
            android:maxLines="1"
            android:ellipsize="end"
            android:clickable="false"
            android:textColor="?conversation_item_incoming_text_primary_color"
            tools:text="Tap to start" />

    </LinearLayout>
</merge>
