mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 21:55:10 +00:00
68 lines
2.5 KiB
XML
68 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
SPDX-FileCopyrightText: 2018 Nicolas Fella <nicolas.fella@gmx.de>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
-->
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:orientation="vertical"
|
|
android:theme="@style/KdeConnectTheme"
|
|
android:layout_height="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:background="?colorSurface"
|
|
tools:ignore="RtlSymmetry">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/widget_title_wrapper"
|
|
android:background="?colorSecondary"
|
|
android:gravity="center_vertical|start"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<ImageView
|
|
android:id="@+id/widget_title_icon"
|
|
android:padding="8dip"
|
|
android:paddingEnd="6dip"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/ic_kde_24dp"
|
|
android:tint="?attr/colorOnSecondary"
|
|
android:importantForAccessibility="no"
|
|
tools:ignore="UseAppTint"/> <!-- can't use app:tint in RemoteView -->
|
|
|
|
<TextView
|
|
android:id="@+id/widget_title_text"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="marquee"
|
|
android:text="@string/kde_connect"
|
|
android:fadingEdge="horizontal"
|
|
android:singleLine="true"
|
|
android:textColor="?attr/colorOnSecondary"
|
|
android:textAppearance="?android:attr/textAppearanceMedium" />
|
|
</LinearLayout>
|
|
|
|
<ListView
|
|
android:id="@+id/widget_command_list"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:addStatesFromChildren="true"
|
|
android:visibility="gone"
|
|
android:orientation="vertical" />
|
|
|
|
<TextView
|
|
android:id="@+id/widget_error_text"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:drawablePadding="8dip"
|
|
android:gravity="center_vertical"
|
|
android:paddingStart="8dip"
|
|
android:text="@string/runcommand_notreachable"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:drawableStart="@drawable/ic_error_outline_48dp"
|
|
tools:ignore="UseCompatTextViewDrawableXml" /> <!-- can't use app:drawableStart in RemoteView -->
|
|
</LinearLayout>
|