<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical" android:layout_width="match_parent"
    android:background="@color/on_secondary"
    android:theme="@style/KdeConnectTheme"
    android:layout_height="match_parent">
    <LinearLayout
        android:id="@+id/runcommandWidgetTitleHeader"
        android:background="@color/primary"
        android:gravity="center_vertical|start"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <ImageView
            android:paddingTop="6dip"
            android:paddingBottom="6dip"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/icon"
            android:contentDescription="@string/device_icon_description"/>

        <TextView
            android:id="@+id/runcommandWidgetTitle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:ellipsize="marquee"
            android:fadingEdge="horizontal"
            android:singleLine="true"
            android:textAppearance="?android:attr/textAppearanceLarge" />

    </LinearLayout>
    <ListView
        android:id="@+id/run_commands_list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_margin="4dp"
        android:addStatesFromChildren="true"
        android:visibility="gone"
        android:orientation="vertical" />

    <TextView
        android:id="@+id/not_reachable_message"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:drawablePadding="8dip"
        android:gravity="center_vertical"
        android:paddingStart="8dip"
        android:text="@string/unreachable_description"
        android:textAppearance="?android:attr/textAppearanceMedium"
        app:drawableStartCompat="@drawable/ic_error_outline_48dp"/>
</LinearLayout>