android-softkeyboard

New Android keyboard behaving unexpectedly in certain apps

一曲冷凌霜 提交于 2019-12-11 05:24:29
问题 I am a linguist, not a programmer, sorry. I was asked and am adapting a keyboard for a minority language in Africa. I have spent a lot of time on this and am willing to learn more and to dig deeper. I am using the latest Android Studio in Windows 10 and am working from a code sample from Google here: https://android.googlesource.com/platform/development/+/master/samples/SoftKeyboard?autodive=0%2F I managed to adapt this sample to our local language and compile and install in a several

push whole dialog above the keyboard, keyboard covers button

↘锁芯ラ 提交于 2019-12-11 04:25:43
问题 I have custom dialog which is attached to bottom of the screen. When I focus to the edittext, keyboard opens but it focuses to edittext so covers my button. I want to see the button. If I use same xml in activity it behaves correctly I tried all of the windowSoftInputMode's but didn't work, I also put my whole view in scrollview it also didn't work. My dialog XML , (I believe problem is here) <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk

Softkeyboard in Fragment does not show for edittext

China☆狼群 提交于 2019-12-11 04:23:00
问题 I have a simple application with two fragments. The right fragment is being replaced. An edittext inside has requestfocus, but does not show the keyboard. On Android 4.2.2 it works fine, on 2.3.x it does not, neither in emulator nor on real device. On the emulator I can type with my windows keyboard although the soft keyboard is not showing. I have not hidden the keyboard on purpose. Showing the keyboard with following code only works for 4.2.x. InputMethodManager imgr = (InputMethodManager)

Display a numeric keypad on activity without an input area

空扰寡人 提交于 2019-12-11 03:59:47
问题 I use the following code to pop up the soft input keyboard in my Activity InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.getInputMethodList(); imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); This displays the alphabetic keyboard. But I want to display the numeric keyboard. Please note I know that using setInputType() works when used with an Edittext or a TextView but I want to be able to display the keyboard without an input area such

How to remove extra spaces on softkeyboard

廉价感情. 提交于 2019-12-11 03:43:18
问题 I would like to know how to remove the top space/margin of a soft-keyboard. For clearer picture, checkout the following screenshots: With space and without space: 回答1: The "spacing" you're seeing is the autocomplete suggestion area. If you have an input type set to something as simple as text then you're going to get suggestions from the keyboard. Adding textNoSuggestions to your inputType field will remove the suggestions area. So for example: <EditText android:id="@+id/username_field"

Android How to disabled predictive text programatically in samsung tab 2

爷,独闯天下 提交于 2019-12-11 03:28:37
问题 My code is : <RelativeLayout 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:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"> <EditText android:layout_width=

Layout is not floating above keyboard in Fragment in Android

大憨熊 提交于 2019-12-11 03:08:11
问题 I have a layout which has two edit texts and horizontal scroll bar with some icons in a fragment. The horizontal scroll view is permanently fixed to the bottom of the parent using relative layout constraints. When an edit is clicked, the soft keyboard appears by default. When that happens, I need the horizontal scroll view to float above the soft keyboard so that everyone can use it. I have added the following line to the AndroidManifest.xml file to the activity containing the fragment

EditText.SetText() changes my softkeyboard input type in a custom adapter

北慕城南 提交于 2019-12-11 02:53:30
问题 I am using a custom base adapter to implement a customListView. The listView class (extends ListView) is used within a flipper flipper.addView(mListView) in the main activity. The list View has 3 types of rows. The 1 st in the list is a row with spinner, the next 2 are rows with edittext where text is inputed. The 3rd row and beyond are all the same with an edittext that has numbers in it. I wanted to make it so that when I click on the text version the softkeypad will appear with the text

implement popup window on keyboard in android to add images in custom keyboard

冷暖自知 提交于 2019-12-11 01:54:04
问题 This keyboard can be select from the keyboard list and user can use it from any application. just implement popup-window to add images on keyboard in custom soft keyboard 回答1: You have to create a class that extends PopupWindow public class CustomPopup extends PopupWindow { Context mContext; View rootView; public CustomPopup(View rootView, Context mContext){ super(mContext); this.mContext = mContext; this.rootView = rootView; View customView = createCustomView(); setContentView(customView);

how to develop android soft keyboard example with a database

喜夏-厌秋 提交于 2019-12-11 00:52:50
问题 I have done a database for the suggestion words but where to put it into the android soft keyboard example and how to use the words from db in the program? so that I will not need to type the word completely and it will shown the suggestion word in database 回答1: Inside the SDK check out the Samples folder, this contains a soft keyboard example and more information on how to suggest results. 回答2: You just need to handle database in SoftKeyboard.java Class. 回答3: To get the suggestion words from