mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-23 07:39:11 +00:00
Fixed one-handed mode buttons appearance
This commit is contained in:
parent
53a904af1e
commit
ece6a8a3e1
2 changed files with 6 additions and 1 deletions
|
@ -63,8 +63,9 @@ class KeyboardWrapperView @JvmOverloads constructor(
|
|||
switchOneHandedModeBtn.visibility = if (oneHandedModeEnabled) VISIBLE else GONE
|
||||
}
|
||||
|
||||
@SuppressLint("RtlHardcoded")
|
||||
private fun updateSwitchButtonSide() {
|
||||
switchOneHandedModeBtn.scaleX = if (oneHandedGravity == Gravity.RIGHT) -1f else 1f
|
||||
switchOneHandedModeBtn.scaleX = if (oneHandedGravity == Gravity.LEFT) -1f else 1f
|
||||
}
|
||||
|
||||
override fun onClick(view: View) {
|
||||
|
|
|
@ -53,12 +53,16 @@
|
|||
android:id="@+id/btn_stop_one_handed_mode"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="8dp"
|
||||
android:scaleType="fitCenter"
|
||||
style="?attr/suggestionWordStyle" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_switch_one_handed_mode"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="8dp"
|
||||
android:scaleType="fitCenter"
|
||||
style="?attr/suggestionWordStyle" />
|
||||
|
||||
</org.dslul.openboard.inputmethod.latin.KeyboardWrapperView>
|
||||
|
|
Loading…
Add table
Reference in a new issue