Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard with scrollView

There are numerous apps on google play having scrollView in softKeyboard.

As android is open source, where can i find that keyboard which has scroll embed on emoji like given image. i think i want open source keyboard for Android 4.x.x

enter image description here

Or tell me how to add scroll to custom softKeyboard. I have tried many ways.

First i tried to add ScrollView to

<?xml version="1.0" encoding="utf-8"?>
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom" >

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical" >

        <com.zeuxislo.emojikeyboard.EmojiKeyboardView
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/keyboard"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="bottom"
            android:keyBackground="@drawable/samplekeybackground" >
        </com.zeuxislo.emojikeyboard.EmojiKeyboardView>

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="Wao what a keyBoard"
            android:textSize="24sp" />
    </LinearLayout>

</HorizontalScrollView>

Also tried adding horizontalScrollView to qwerty.xml and other emoji.xml under xml folder

like image 961
Xar-e-ahmer Khan Avatar asked Sep 01 '15 11:09

Xar-e-ahmer Khan


People also ask

How do I scroll up when keyboard appears in IOS?

Handling the Keyboard Appearing Notification There are two things to do in keyboardWasShown to scroll the text view. First, set the text view's content inset so the bottom edge is the keyboard's height. Second, set the scroll indicator insets to the text view's content inset.

How do you move ScrollView up when keyboard appears react native?

Using KeyboardAvoidingView in React Native To handle this scenario, you'll want to use KeyboardAvoidingView so that whenever the keyboard opens, your fields in focus will be lifted upward to appear above the keyboard. As you can see, when the keyboard opened, the input field became hidden behind the keyboard.

What does keyboard avoiding view do?

This component will automatically adjust its height, position, or bottom padding based on the keyboard height to remain visible while the virtual keyboard is displayed.


2 Answers

It sounds like you're wanting to install a new keyboard on your device and then make that the default one. Try some like Google's keyboard, or just look around for others. Once you get it installed then go to Setting > Language & input > Current keyboard and then just select whichever one you prefer.

like image 50
Cody Harness Avatar answered Oct 13 '22 19:10

Cody Harness


You are probably looking for this : https://android.googlesource.com/platform/packages/inputmethods/LatinIME/+/android-6.0.0_r1/java/src/com/android/inputmethod/keyboard/emoji/

Keyboard code

Latest/Marshmallow: https://android.googlesource.com/platform/packages/inputmethods/LatinIME/+/android-6.0.0_r1

KitKat https://android.googlesource.com/platform/packages/inputmethods/LatinIME/+/android-4.4.4_r2.0.1

like image 29
arbrcr Avatar answered Oct 13 '22 21:10

arbrcr