How to make the Horizontal Keyboard call by clicking EditText?

1

Explanation:

I have an application that has a field of type EditText used for observation, of which it is too small because there is no space for it.

If I open the screen in "landscape orientation" and click on the field, Android will open a horizontal keyboard that has space to type and a "complete" button, as we can see in the image below: / p>

I'dlikeforhimtoturnonthisAndroidfeatureatalltimes.Theoreticallyitisonlytriggerediftheorientationis"lying down" ie horizontal.

Question:

I want to know how to activate the Horizontal Keyboard regardless of the orientation the user is, how can I do this?

    
asked by anonymous 27.03.2014 / 22:00

2 answers

1

Could you show the EditText XML you are using? In my case, the keyboard always works for both directions. Here is an example.

<EditText
    android:id="@+id/user_name"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:background="@drawable/edittext_bg_selector"
    android:hint="@string/user_name_hint"
    android:inputType="text"
    android:maxLength="@integer/user_name_max_length"
    android:maxWidth="@dimen/user_name_max_width"
    android:nextFocusDown="@+id/user_password"
    android:textColor="@android:color/black"
    android:textSize="@dimen/user_name_text_size"
    app:colorHint="@android:color/black"/>
    
31.03.2014 / 13:53
0

I have the same problem of yours, but the need is reversed, because in my case I always wanted to open the portrait orientation keyboard (vertical). From the research I did not do how to change this setting for your app, because this layout is the keyboard that you are using. To solve this you have to install a new keyboard template or develop one for your needs.

Here is the documentation for you to create a Custom Keyboard on Android

    
28.03.2014 / 12:45