android-softkeyboard

Don't want to hide EditText View when on EditText is pressed (After keyboard comeup) in Android?

偶尔善良 提交于 2019-12-07 12:31:57
问题 In Android Application, when I pressed on EditText then it looks like as below : I am using textview above tabbar and following code android:windowSoftInputMode="stateHidden|adjustResize|adjustPan" in manifest file to hide tabs when EditText is pressed.But it also hides text view and button as below : I dont want to hide textview , I just want to hide tabbar. xml file chatroom.xml : <?xml version="1.0" encoding="utf-8"?> <TabHost android:id="@+id/tabHost" android:layout_width="fill_parent"

Custom keyboard like gif keyboard in android

*爱你&永不变心* 提交于 2019-12-07 12:23:07
问题 I'm developing a custom Android keyboard like gif keyboard(https://play.google.com/store/apps/details?id=bo.pic.android.keyboard&hl=ko). When i click a specific button, I want to change to A view. I cannot find a way to change to A view. Or is it not A view? 来源: https://stackoverflow.com/questions/32395655/custom-keyboard-like-gif-keyboard-in-android

React-native: when submitting a text input in android, the word suggestions are not cleared

依然范特西╮ 提交于 2019-12-07 10:39:18
问题 I have an Android app built with React native. The app has a TextInput and a submit button. When typing in the text input, the default keyboard starts suggesting words (not sure how this feature is called - auto complete or predictive text). When clicking submit, the data is stored and the TextInput is cleared via the "clear()" method of the TextInput. For example: this.refs.textInput.clear(); For some reason, the "predictive text" is not cleared after the "clear()" method is called. As a

Why do the Android Keyboard pops up when adding a ListView

折月煮酒 提交于 2019-12-07 10:37:52
问题 I'm facing a weird problem when adding a ListView to my layout. My layout contains 2 EditText and when I start the activity, the keyboard doesn't pop automatically. But when I add a ListView anywhere in the layout, the keyboard pop up when the activity starts. I know there are many ways to hide the keyboard like this one: getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN) and you may have seen other solutions to the problems like here and here but my question is

How can I fix low resolution of my custom soft Keyboard View?

。_饼干妹妹 提交于 2019-12-07 03:02:29
I am developing a custom softkeyboard using softkeyboard sample of android SDK for 10 inches tablet PCs. First question: I noticed that the resolution of my keyboard is very low on tablet that is obvious in the following images. Actually in my keyboard area, the resolution is same as Pocket PCs resolution. How can I change its resolution to normal resolution of tablet PCs (10in)? In my softkeyboard getMaxWidth(); returns 545 that is very low for tablet. Second question: how can I change the font size of key labels? Thanks a lot, My keyboard View: My desired View: I found the answer of my first

Soft Keyboard Hides Toolbar

半腔热情 提交于 2019-12-07 02:45:03
问题 I have used Toolbar in my layout. Whenever I open the activity, and focus on the edit-text, it hides the toolbar. Please see below pictures Below is my layout file: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context="com.example.sampleactivity"> <android.support.v7.widget.Toolbar android:id="@+id/toolbar"

Why android InputMethodManager.showSoftInput() returns false?

不打扰是莪最后的温柔 提交于 2019-12-07 00:39:29
问题 Recently while developing an app, I faced an issue. I have searched a lot on google but couldn't find any solution. In the end I came across this Android issue tracker To explain my issue, I have made a sample App. Basic Working of my Sample App I have a screen, which has an EditText, a Button and a RelativeLayout. Width and Height of RelativeLayout is 0px. It is just a view to move focus away from EditText. When App is launched focus is on RelativeLayout, not on EditText(so that there is not

Close/hide the Android Soft Keyboard on activity state onStop

我们两清 提交于 2019-12-06 23:24:07
问题 I have an EditText and a Button in my layout. After writing in the edit field and click this button to go back my fragment , I want to hide the virtual keyboard. I assume that there's a simple, but i tried some way and it not work: That code show how the Button work: private void onButtonClicked(){ getActivity().getSupportFragmentManager().popBackStack(); } That code for some solution but that can't help. This code i using hideSoftInputFromWindow but when i call 'EditText.getWindowToken()',

How to NOT close keyboard when DONE on keyboard is pressed

自作多情 提交于 2019-12-06 17:30:29
问题 When the user presses "Done" on the soft keyboard, the keyboard closes. I want it so that it will only close if a certain condition is true (eg. the password was entered correctly). This is my code (sets up a listener for when the "Done" button is pressed): final EditText et = (EditText)findViewById(R.id.et); et.setOnEditorActionListener(new OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if(actionId==EditorInfo.IME_ACTION_DONE) {

Creating custom keyboard for android

不羁的心 提交于 2019-12-06 16:03:01
问题 Well, you might have seen few questions like asking for this. But reading all of those questions/answers and almost all of the android inputmethod webpages in Google, I am still in trouble. My final goal is to create a custom keyboard. But of course, mine will have special input methods for certain language. But this time, all I want is to show my custom view when the keyboard is popped up. I've managed to pop the default layout based on a qwerty.xml file, which is something like this. xml