mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-22 01:51:47 +00:00
Added a screen to allow users to compose the key strokes to send. This is necessary because the keyboard that appears on the mouse pad screen does not have the voice to text microphone button on my phone. Even if it could be made to appear as it does on my tablet, some kind of text buffering is necessary because the voice text will change its mind.
50 lines
2.1 KiB
XML
50 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appBarLayout2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize" />
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<EditText
|
|
android:id="@+id/compose"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginRight="16dp"
|
|
android:layout_marginBottom="16dp"
|
|
android:ems="10"
|
|
android:hint="@string/click_here_to_type"
|
|
android:imeActionLabel="@string/send_compose"
|
|
android:imeOptions="actionSend|actionDone"
|
|
android:importantForAutofill="no"
|
|
android:inputType="textLongMessage|textMultiLine"
|
|
android:isScrollContainer="true"
|
|
android:saveEnabled="true"
|
|
android:scrollbars="vertical"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintHorizontal_bias="0.0"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/appBarLayout2"
|
|
app:layout_constraintVertical_bias="1.0"
|
|
tools:ignore="SpeakableTextPresentCheck,TextContrastCheck" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |