adding a Manage clipboard button and some placeholders

This commit is contained in:
tibbi 2022-01-27 14:14:15 +01:00
parent f1e045c69c
commit c7cdc2123e
15 changed files with 108 additions and 2 deletions

View File

@ -64,7 +64,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:db3561b188'
implementation 'com.github.SimpleMobileTools:Simple-Commons:1db5d21d3e'
kapt 'androidx.room:room-compiler:2.3.0'
implementation 'androidx.room:room-runtime:2.3.0'

View File

@ -286,7 +286,11 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
mClipboardManagerHolder?.apply {
clipboard_manager_holder.background = ColorDrawable(mBackgroundColor.darkenColor())
clipboard_manager_close.applyColorFilter(mTextColor)
clipboard_manager_manage.applyColorFilter(mTextColor)
clipboard_manager_label.setTextColor(mTextColor)
clipboard_content_placeholder_1.setTextColor(mTextColor)
clipboard_content_placeholder_2.setTextColor(mTextColor)
}
}
}
@ -357,6 +361,11 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
vibrateIfNeeded()
openClipboardManager()
}
clipboard_manager_manage.setOnLongClickListener { context.toast(R.string.manage_clipboard_items); true; }
clipboard_manager_manage.setOnClickListener {
}
}
}

View File

@ -131,10 +131,59 @@
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/medium_margin"
android:layout_toStartOf="@+id/clipboard_manager_manage"
android:layout_toEndOf="@+id/clipboard_manager_close"
android:ellipsize="end"
android:lines="1"
android:text="@string/clipboard"
android:textSize="@dimen/big_text_size" />
<ImageView
android:id="@+id/clipboard_manager_manage"
android:layout_width="@dimen/toolbar_icon_height"
android:layout_height="@dimen/toolbar_icon_height"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/medium_margin"
android:layout_marginEnd="@dimen/medium_margin"
android:background="?android:attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/manage_clipboard_items"
android:padding="@dimen/small_margin"
android:src="@drawable/ic_set_as_vector" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/clipboard_content_holder"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/clipboard_manager_top_bar">
<TextView
android:id="@+id/clipboard_content_placeholder_1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/activity_margin"
android:gravity="center_horizontal"
android:paddingStart="@dimen/big_margin"
android:paddingEnd="@dimen/big_margin"
android:text="@string/manage_clipboard_empty"
android:textSize="@dimen/bigger_text_size" />
<TextView
android:id="@+id/clipboard_content_placeholder_2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/clipboard_content_placeholder_1"
android:layout_centerHorizontal="true"
android:layout_marginTop="@dimen/activity_margin"
android:gravity="center_horizontal"
android:paddingStart="@dimen/big_margin"
android:paddingEnd="@dimen/big_margin"
android:text="@string/manage_clipboard_label"
android:textSize="@dimen/normal_text_size" />
</RelativeLayout>
</RelativeLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

View File

@ -4,6 +4,10 @@
<string name="app_launcher_name">Teclat</string>
<string name="redirection_note">Si us plau, activeu el teclat simple a la pantalla següent per fer-lo un teclat disponible. Premeu «Enrere» un cop activat.</string>
<string name="change_keyboard">Canvia el teclat</string>
<!-- Clipboard -->
<string name="manage_clipboard_items">Manage clipboard items</string>
<string name="manage_clipboard_empty">Your clipboard is empty</string>
<string name="manage_clipboard_label">Once you copy some text, it will show up here. You can also pin clips so they won\'t disappear later.</string>
<string name="clear_clipboard_data">Neteja les dades del porta-retalls</string>
<string name="clear_clipboard_data_confirmation">Esteu segur que voleu netejar les dades del porta-retalls\?</string>
<string name="clipboard">Clipboard</string>

View File

@ -4,6 +4,10 @@
<string name="app_launcher_name">Tastatur</string>
<string name="redirection_note">Aktivér Simpelt tastatur på det næste skærmbillede for at gøre det til et tilgængeligt tastatur. Tryk på \'Tilbage\' når det er aktiveret.</string>
<string name="change_keyboard">Skift tastatur</string>
<!-- Clipboard -->
<string name="manage_clipboard_items">Manage clipboard items</string>
<string name="manage_clipboard_empty">Your clipboard is empty</string>
<string name="manage_clipboard_label">Once you copy some text, it will show up here. You can also pin clips so they won\'t disappear later.</string>
<string name="clear_clipboard_data">Ryd data i udklipsholder</string>
<string name="clear_clipboard_data_confirmation">Er du sikker på, at du vil slette data i udklipsholderen\?</string>
<string name="clipboard">Clipboard</string>

View File

@ -4,6 +4,10 @@
<string name="app_launcher_name">Tastatur</string>
<string name="redirection_note">Bitte aktivieren Sie Schlichte Tastatur auf dem nächsten Bildschirm, damit sie als Tastatur verfügbar ist. Drücken Sie nach der Aktivierung „Zurück“.</string>
<string name="change_keyboard">Tastatur wechseln</string>
<!-- Clipboard -->
<string name="manage_clipboard_items">Manage clipboard items</string>
<string name="manage_clipboard_empty">Your clipboard is empty</string>
<string name="manage_clipboard_label">Once you copy some text, it will show up here. You can also pin clips so they won\'t disappear later.</string>
<string name="clear_clipboard_data">Daten in der Zwischenablage löschen</string>
<string name="clear_clipboard_data_confirmation">Sind Sie sicher, dass Sie die Daten in der Zwischenablage löschen wollen\?</string>
<string name="clipboard">Clipboard</string>

View File

@ -4,6 +4,10 @@
<string name="app_launcher_name">Πληκτρολόγιο</string>
<string name="redirection_note">Ενεργοποιήστε το Απλό πληκτρολόγιο στην επόμενη οθόνη, για να γίνει διαθέσιμο. Πατήστε \'Πίσω\' μόλις ενεργοποιηθεί.</string>
<string name="change_keyboard">Αλλαγή πληκτρολογίου</string>
<!-- Clipboard -->
<string name="manage_clipboard_items">Manage clipboard items</string>
<string name="manage_clipboard_empty">Your clipboard is empty</string>
<string name="manage_clipboard_label">Once you copy some text, it will show up here. You can also pin clips so they won\'t disappear later.</string>
<string name="clear_clipboard_data">Καθαρισμός δεδομένων πρόχειρου</string>
<string name="clear_clipboard_data_confirmation">Είστε σίγουροι ότι θέλετε να διαγράψετε τα δεδομένα του πρόχειρου;</string>
<string name="clipboard">Πρόχειρο</string>

View File

@ -4,6 +4,10 @@
<string name="app_launcher_name">Clavier</string>
<string name="redirection_note">Veuillez activer Clavier simple sur l\'écran suivant, pour en faire un clavier disponible. Appuyez sur «Retour» une fois activé.</string>
<string name="change_keyboard">Changer de clavier</string>
<!-- Clipboard -->
<string name="manage_clipboard_items">Manage clipboard items</string>
<string name="manage_clipboard_empty">Your clipboard is empty</string>
<string name="manage_clipboard_label">Once you copy some text, it will show up here. You can also pin clips so they won\'t disappear later.</string>
<string name="clear_clipboard_data">Effacer les données du presse-papiers</string>
<string name="clear_clipboard_data_confirmation">Voulez-vous vraiment effacer les données du presse-papiers\?</string>
<string name="clipboard">Clipboard</string>

View File

@ -4,6 +4,10 @@
<string name="app_launcher_name">Tipkovnica</string>
<string name="redirection_note">Aktiviraj jednostavnu tipkovnicu na sljedećem ekranu kako bi tipkovnica bila dostupna. Nakon što je aktivirana pritisni „Natrag”.</string>
<string name="change_keyboard">Promijeni tipkovnicu</string>
<!-- Clipboard -->
<string name="manage_clipboard_items">Manage clipboard items</string>
<string name="manage_clipboard_empty">Your clipboard is empty</string>
<string name="manage_clipboard_label">Once you copy some text, it will show up here. You can also pin clips so they won\'t disappear later.</string>
<string name="clear_clipboard_data">Izbriši podatke međuspremnika</string>
<string name="clear_clipboard_data_confirmation">Stvarno želiš izbrisati podatke međuspremnika\?</string>
<string name="clipboard">Clipboard</string>

View File

@ -4,6 +4,10 @@
<string name="app_launcher_name">Tastiera</string>
<string name="redirection_note">Abilita Simple Keyboard nella prossima schermata, per renderla una tastiera disponibile. Premi «Indietro» una volta abilitata.</string>
<string name="change_keyboard">Cambia la tastiera</string>
<!-- Clipboard -->
<string name="manage_clipboard_items">Manage clipboard items</string>
<string name="manage_clipboard_empty">Your clipboard is empty</string>
<string name="manage_clipboard_label">Once you copy some text, it will show up here. You can also pin clips so they won\'t disappear later.</string>
<string name="clear_clipboard_data">Elimina i dati degli appunti</string>
<string name="clear_clipboard_data_confirmation">Vuoi davvero eliminare i dati degli appunti\?</string>
<string name="clipboard">Clipboard</string>

View File

@ -4,6 +4,10 @@
<string name="app_launcher_name">Klaviatūra</string>
<string name="redirection_note">Please enable Simple Keyboard on the next screen, to make it an available keyboard. Press \'Back\' once enabled.</string>
<string name="change_keyboard">Keisti klaviatūrą</string>
<!-- Clipboard -->
<string name="manage_clipboard_items">Manage clipboard items</string>
<string name="manage_clipboard_empty">Your clipboard is empty</string>
<string name="manage_clipboard_label">Once you copy some text, it will show up here. You can also pin clips so they won\'t disappear later.</string>
<string name="clear_clipboard_data">Išvalyti iškarpinės duomenis</string>
<string name="clear_clipboard_data_confirmation">Ar tikrai norite išvalyti iškarpinės duomenis\?</string>
<string name="clipboard">Clipboard</string>

View File

@ -4,6 +4,10 @@
<string name="app_launcher_name">Klawiatura</string>
<string name="redirection_note">Włącz Prostą klawiaturę na następnym ekranie, aby stała się dostępną klawiaturą. Naciśnij przycisk Wstecz po włączeniu.</string>
<string name="change_keyboard">Zmień klawiaturę</string>
<!-- Clipboard -->
<string name="manage_clipboard_items">Manage clipboard items</string>
<string name="manage_clipboard_empty">Your clipboard is empty</string>
<string name="manage_clipboard_label">Once you copy some text, it will show up here. You can also pin clips so they won\'t disappear later.</string>
<string name="clear_clipboard_data">Wyczyść dane schowka</string>
<string name="clear_clipboard_data_confirmation">Czy wyczyścić dane schowka\?</string>
<string name="clipboard">Schowek</string>
@ -28,4 +32,4 @@
Haven't found some strings? There's more at
https://github.com/SimpleMobileTools/Simple-Commons/tree/master/commons/src/main/res
-->
</resources>
</resources>

View File

@ -3,6 +3,10 @@
<string name="app_launcher_name">Klávesnica</string>
<string name="redirection_note">Prosím povoľte Jednoduchú klávesnicu na nasledujúcej obrazovke, aby sa stala zvoliteľnou. Po povolení stlačte \'Späť\'.</string>
<string name="change_keyboard">Zmeniť klávesnicu</string>
<!-- Clipboard -->
<string name="manage_clipboard_items">Spravovať položky v schránke</string>
<string name="manage_clipboard_empty">Schránka je prázdna</string>
<string name="manage_clipboard_label">Akonáhle skopírujete nejaký text, objaví sa tu. Budete ho aj môcť pripnúť, aby sa časom nestratil.</string>
<string name="clear_clipboard_data">Vyčistič schránku</string>
<string name="clear_clipboard_data_confirmation">Ste si istý, že chcete vyčistiť schránku?</string>
<string name="clipboard">Schránka</string>

View File

@ -4,6 +4,10 @@
<string name="app_launcher_name">Klavye</string>
<string name="redirection_note">Kullanılabilir bir klavye yapmak için lütfen bir sonraki ekranda Basit Klavye\'yi etkinleştirin. Etkinleştirildikten sonra \'Geri\' düğmesine basın.</string>
<string name="change_keyboard">Klavye Değiştir</string>
<!-- Clipboard -->
<string name="manage_clipboard_items">Manage clipboard items</string>
<string name="manage_clipboard_empty">Your clipboard is empty</string>
<string name="manage_clipboard_label">Once you copy some text, it will show up here. You can also pin clips so they won\'t disappear later.</string>
<string name="clear_clipboard_data">Pano verilerini temizle</string>
<string name="clear_clipboard_data_confirmation">Pano verilerini silmek istediğinizden emin misiniz\?</string>
<string name="clipboard">Clipboard</string>

View File

@ -4,6 +4,10 @@
<string name="app_launcher_name">Keyboard</string>
<string name="redirection_note">Please enable Simple Keyboard on the next screen, to make it an available keyboard. Press \'Back\' once enabled.</string>
<string name="change_keyboard">Change Keyboard</string>
<!-- Clipboard -->
<string name="manage_clipboard_items">Manage clipboard items</string>
<string name="manage_clipboard_empty">Your clipboard is empty</string>
<string name="manage_clipboard_label">Once you copy some text, it will show up here. You can also pin clips so they won\'t disappear later.</string>
<string name="clear_clipboard_data">Clear clipboard data</string>
<string name="clear_clipboard_data_confirmation">Are you sure you want to clear the clipboard data?</string>
<string name="clipboard">Clipboard</string>