mirror of
https://invent.kde.org/network/kdeconnect-android.git
synced 2025-10-05 16:12:42 +02:00
When connected to a TV (running Plasma Bigscreen), Remote Input will show a TV remote and a button on the top to switch to mouse and keyboard. When connected to any other device, Remote Input will show the mouse and keyboard only. **Removals:** - [x] Remove BigscreenPlugin **Additions:** - [x] Add "Use mouse and keyboard" **Changes:** - [x] Plugin has both remote and mouse/keyboard if device is TV, just mouse/keyboard otherwise **Code changes:** - [x] Move all TV functions to MousePlugin 
97 lines
4.0 KiB
XML
97 lines
4.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
SPDX-FileCopyrightText: 2020 Sylvia van Os <sylvia@hackerchick.me>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
-->
|
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
tools:context="org.kde.kdeconnect.Plugins.MousePadPlugin.BigscreenActivity">
|
|
|
|
<include layout="@layout/toolbar" android:id="@+id/toolbar_layout" />
|
|
|
|
<androidx.gridlayout.widget.GridLayout
|
|
xmlns:grid="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
grid:useDefaultMargins="true"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/home_button"
|
|
grid:layout_column="0"
|
|
grid:layout_row="0"
|
|
grid:layout_columnWeight="1"
|
|
grid:layout_rowWeight="1"
|
|
android:contentDescription="@string/bigscreen_home"
|
|
app:icon="@drawable/ic_home_black_24dp"
|
|
style="@style/KdeConnectButton.IconButton" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/up_button"
|
|
grid:layout_column="1"
|
|
grid:layout_row="0"
|
|
grid:layout_columnWeight="1"
|
|
grid:layout_rowWeight="1"
|
|
android:contentDescription="@string/bigscreen_up"
|
|
app:icon="@drawable/ic_arrow_upward_black_24dp"
|
|
style="@style/KdeConnectButton.IconButton" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/mic_button"
|
|
grid:layout_column="2"
|
|
grid:layout_columnWeight="1"
|
|
grid:layout_row="0"
|
|
grid:layout_rowWeight="1"
|
|
android:contentDescription="@string/bigscreen_mic"
|
|
app:icon="@drawable/ic_mic_black"
|
|
style="@style/KdeConnectButton.IconButton" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/left_button"
|
|
grid:layout_column="0"
|
|
grid:layout_row="1"
|
|
grid:layout_columnWeight="1"
|
|
grid:layout_rowWeight="1"
|
|
android:contentDescription="@string/bigscreen_left"
|
|
app:icon="@drawable/ic_arrow_back_black_24dp"
|
|
style="@style/KdeConnectButton.IconButton" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/select_button"
|
|
grid:layout_column="1"
|
|
grid:layout_row="1"
|
|
grid:layout_columnWeight="1"
|
|
grid:layout_rowWeight="1"
|
|
android:contentDescription="@string/bigscreen_select"
|
|
app:icon="@drawable/ic_keyboard_return_black_24dp"
|
|
style="@style/KdeConnectButton.IconButton" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/right_button"
|
|
grid:layout_column="2"
|
|
grid:layout_row="1"
|
|
grid:layout_columnWeight="1"
|
|
grid:layout_rowWeight="1"
|
|
android:contentDescription="@string/bigscreen_right"
|
|
app:icon="@drawable/ic_arrow_forward_black_24dp"
|
|
style="@style/KdeConnectButton.IconButton" />
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
android:id="@+id/down_button"
|
|
grid:layout_column="1"
|
|
grid:layout_row="2"
|
|
grid:layout_columnWeight="1"
|
|
grid:layout_rowWeight="1"
|
|
android:contentDescription="@string/bigscreen_down"
|
|
app:icon="@drawable/ic_arrow_downward_black_24dp"
|
|
style="@style/KdeConnectButton.IconButton" />
|
|
</androidx.gridlayout.widget.GridLayout>
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|