adding some extra characters

This commit is contained in:
tibbi
2022-02-07 18:03:27 +01:00
parent 36db28e533
commit 294ab02589
4 changed files with 11 additions and 9 deletions

View File

@ -64,7 +64,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:8f22f91a00' implementation 'com.github.SimpleMobileTools:Simple-Commons:608dbb5ca9'
kapt 'androidx.room:room-compiler:2.3.0' kapt 'androidx.room:room-compiler:2.3.0'
implementation 'androidx.room:room-runtime:2.3.0' implementation 'androidx.room:room-runtime:2.3.0'

View File

@ -1,5 +1,6 @@
package com.simplemobiletools.keyboard.adapters package com.simplemobiletools.keyboard.adapters
import android.view.Menu
import android.view.MotionEvent import android.view.MotionEvent
import android.view.View import android.view.View
import android.view.ViewGroup import android.view.ViewGroup
@ -16,7 +17,6 @@ import com.simplemobiletools.commons.interfaces.ItemTouchHelperContract
import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener import com.simplemobiletools.commons.interfaces.RefreshRecyclerViewListener
import com.simplemobiletools.commons.interfaces.StartReorderDragListener import com.simplemobiletools.commons.interfaces.StartReorderDragListener
import com.simplemobiletools.commons.views.MyRecyclerView import com.simplemobiletools.commons.views.MyRecyclerView
import com.simplemobiletools.commons.views.bottomactionmenu.BottomActionMenuView
import com.simplemobiletools.keyboard.R import com.simplemobiletools.keyboard.R
import com.simplemobiletools.keyboard.dialogs.AddOrEditClipDialog import com.simplemobiletools.keyboard.dialogs.AddOrEditClipDialog
import com.simplemobiletools.keyboard.extensions.clipsDB import com.simplemobiletools.keyboard.extensions.clipsDB
@ -48,8 +48,10 @@ class ClipsActivityAdapter(
override fun getActionMenuId() = R.menu.cab_clips override fun getActionMenuId() = R.menu.cab_clips
override fun onBottomActionMenuCreated(view: BottomActionMenuView) { override fun prepareActionMode(menu: Menu) {
view.toggleItemVisibility(R.id.cab_edit, isOneItemSelected()) menu.apply {
findItem(R.id.cab_edit).isVisible = isOneItemSelected()
}
} }
override fun actionItemPressed(id: Int) { override fun actionItemPressed(id: Int) {

View File

@ -5,7 +5,7 @@ const val SHIFT_ON_ONE_CHAR = 1
const val SHIFT_ON_PERMANENT = 2 const val SHIFT_ON_PERMANENT = 2
// limit the count of alternative characters that show up at long pressing a key // limit the count of alternative characters that show up at long pressing a key
const val MAX_KEYS_PER_MINI_ROW = 8 const val MAX_KEYS_PER_MINI_ROW = 9
// shared prefs // shared prefs
const val VIBRATE_ON_KEYPRESS = "vibrate_on_keypress" const val VIBRATE_ON_KEYPRESS = "vibrate_on_keypress"

View File

@ -14,7 +14,7 @@
app:topSmallNumber="2" /> app:topSmallNumber="2" />
<Key <Key
app:keyLabel="e" app:keyLabel="e"
app:popupCharacters="éè3êëē" app:popupCharacters="éè3êëēę"
app:popupKeyboard="@xml/keyboard_popup_template" app:popupKeyboard="@xml/keyboard_popup_template"
app:topSmallNumber="3" /> app:topSmallNumber="3" />
<Key <Key
@ -59,7 +59,7 @@
app:horizontalGap="5%" app:horizontalGap="5%"
app:keyEdgeFlags="left" app:keyEdgeFlags="left"
app:keyLabel="a" app:keyLabel="a"
app:popupCharacters="áàâãäåāæ" app:popupCharacters="áàâãäåāæą"
app:popupKeyboard="@xml/keyboard_popup_template" /> app:popupKeyboard="@xml/keyboard_popup_template" />
<Key <Key
app:keyLabel="s" app:keyLabel="s"
@ -80,7 +80,7 @@
<Key <Key
app:keyEdgeFlags="right" app:keyEdgeFlags="right"
app:keyLabel="l" app:keyLabel="l"
app:popupCharacters="ĺľλ" app:popupCharacters="ĺľł"
app:popupKeyboard="@xml/keyboard_popup_template" /> app:popupKeyboard="@xml/keyboard_popup_template" />
</Row> </Row>
<Row> <Row>
@ -91,7 +91,7 @@
app:keyWidth="15%p" /> app:keyWidth="15%p" />
<Key <Key
app:keyLabel="z" app:keyLabel="z"
app:popupCharacters="ž" app:popupCharacters="źžż"
app:popupKeyboard="@xml/keyboard_popup_template" /> app:popupKeyboard="@xml/keyboard_popup_template" />
<Key app:keyLabel="x" /> <Key app:keyLabel="x" />
<Key <Key