android-softkeyboard

Rejusting UI with candidateview visible in custom keyboard

本小妞迷上赌 提交于 2019-11-30 07:44:56
I'm working on custome keyboard .I have set setCandidatesViewShown(true) function in onCreateCandidatesView() , problem is the UI doesnt get readjusted properly. Any assistance would be greatful.. below is what I have done @Override public View onCreateCandidatesView() { LayoutInflater li = (LayoutInflater) getApplicationContext() .getSystemService(Context.LAYOUT_INFLATER_SERVICE); View wordBar = li.inflate(R.layout.wordbar, null); LinearLayout ll = (LinearLayout) wordBar.findViewById(R.id.words); Button voiceCmd = (Button) wordBar.findViewById(R.id.voiceword); LinearLayout ll1 = null; Button

Show entire bottom sheet with EditText above Keyboard

假如想象 提交于 2019-11-30 07:20:37
I'm implementing a UI where a bottom sheet will appear above the keyboard with an EditText for the user to enter a value. The problem is the View is being partially overlapped by the keyboard, covering up the bottom of the bottom sheet. Here is the Bottom Sheet and no keyboard. Here is the Bottom Sheet with the keyboard showing. What's the best method to ensure the entire Bottom Sheet is shown? Thanks. Just reposting @jblejder from this question Keyboard hides BottomSheetDialogFragment since it worked for me, to make it easier for others to find: The most convenient way that I found to change

how to change key background of any key in Android soft keyboard

a 夏天 提交于 2019-11-30 06:51:57
I want to have some of my keys in the keyboard different from others. For example,like shift, delete, space key in below photo: According to the reference documents from google. We can change key's background by use " android:keybackground=@drawable/xxx " in " input.xml ", but it change background of all keys in keyboard. Although "android:keyicon" in qwerty.xml can have single key changed,but it only replace the label. Meanwhile, use " android:keyicon " , the image can not cover entire key , the image will be a litte bit smaller than the key background. What's the correct way to change

Android 4.0 keyboard issue in emulator.?

邮差的信 提交于 2019-11-30 06:42:14
I am tried an app in android icecream sandwich emulator. My app is having some activities with some text box's. now the problem is when i am tapping on the text box the soft keypad is not appearing.And i checked it in Google maps application there too it is not displaying any key pad is there any problem in android 4.0 with soft keypad??? Fixed ! Edit your AVD, add "Keyboard Support" and change the value to no. Restart your AVD making sure that you wipe user data. Your keyboard will popup now. In my case, I did something similar open ADV manger, Edit my ADV just uncheck "Hardware Keyboard

How to hide keyboard on dialog showing?

荒凉一梦 提交于 2019-11-30 06:38:29
问题 I have a custom dialog with a EditText in it. When the dialog appear the focus is on the EditText, and the soft keyboard is showing. How to avoid this? I tried: getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); and InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(edittext.getWindowToken(), 0); but they don't work for me. I think these don't work for dialog. 回答1: Have u tried this?I

Show entire bottom sheet with EditText above Keyboard

此生再无相见时 提交于 2019-11-30 06:32:47
问题 I'm implementing a UI where a bottom sheet will appear above the keyboard with an EditText for the user to enter a value. The problem is the View is being partially overlapped by the keyboard, covering up the bottom of the bottom sheet. Here is the Bottom Sheet and no keyboard. Here is the Bottom Sheet with the keyboard showing. What's the best method to ensure the entire Bottom Sheet is shown? Thanks. 回答1: Just reposting @jblejder from this question Keyboard hides BottomSheetDialogFragment

Show keyboard for edittext when fragment starts

血红的双手。 提交于 2019-11-30 04:11:24
When my fragment starts, I want my edittext to be in focus/let user to just start typing in it. I am able to get it in focus with requestFocus(), but I cannot get the keyboard to show up. I have tried both this: edit = (EditText) view.findViewById(R.id.search); edit.requestFocus(); InputMethodManager imgr = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imgr.showSoftInput(edit, 0); and edit = (EditText) view.findViewById(R.id.search); InputMethodManager imgr = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE); imgr

How to hide keyboard on dialog showing?

喜欢而已 提交于 2019-11-30 03:05:07
I have a custom dialog with a EditText in it. When the dialog appear the focus is on the EditText, and the soft keyboard is showing. How to avoid this? I tried: getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN); and InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(edittext.getWindowToken(), 0); but they don't work for me. I think these don't work for dialog. Have u tried this?I have tested it.It is working. change getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE

How to hide the BottomNavigationView below keyboard with adjustResize set

妖精的绣舞 提交于 2019-11-30 02:54:44
According to the material design spec , when the keyboard appears, the BottomNavigationView should hide underneath it. However, if I set android:windowSoftInputMode="adjustResize" in the Activity's manifest then the BottomNavigationView moves above the keyboard. I need to set adjustResize to enable scrolling to the bottom of the screen while the keyboard is open. However, I do not want the BottomNavigationView to be visible. Can this be done? How it currently looks: The layout XML (in reality there would be a FrameLayout where the EditText is and the EditText would be inside it): <?xml version

Android soft keyboard in a fullscreen Surface View

纵然是瞬间 提交于 2019-11-29 18:14:40
HI! I am currently extending an Android Game Framework,which I found in a Book written by Mario Zechner (who also develops Libgdx). It is working great so far and I accomplished a Java Desktop Implementation of the Framework. But one tiny thing is missing, the correct usage of the SoftKeyboard. You can try out and reproduce my bug , the whole project is on github, and the android module is the "app"folder. The java version (left arrow key = key back) is in the javalib module. https://github.com/Railwanderer/AndroidGameFramework The Framework uses Window FullScreenFlags and NoTitle Flags in