android-softkeyboard

Is there a way to get an Android soft keyboard that has only numbers (no decimals, spaces) with Java code?

流过昼夜 提交于 2019-12-21 20:49:46
问题 I have an iPhone app that uses different keyboard layouts. Some are custom and some are built in: Numbers only: Decimals: Custom X button for ISBN numbers: I'd like to do the same thing on Android, but even the normal InputType.TYPE_CLASS_NUMBER still includes a decimals, space, comma, etc. How can I customize the keyboards in Android?? 回答1: It's not possible using the built-in keyboard. You'll have to develop a custom soft keyboard, or write an inline view that works like a keyboard

Unproportional keyboard on landscape layout Android

混江龙づ霸主 提交于 2019-12-21 18:34:10
问题 I am having EditText in my LinearLayout. When i am typing text in portrait mode keyboard displays fine but when i changed to landscape mode , only i can editext box and a button on right side of it, that looking really bad. Just i want to look the keyboard same in both modes. How i achieve that?? Problem is: Keyboard is filling the entire screen am not able to see other views in the screen in landscape when i want to type text.. Thanks 回答1: In layout at landscape, you can set android

android soft keyboard spoils layout when appears

拥有回忆 提交于 2019-12-21 07:58:12
问题 Here is a layout: <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" > <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent" > <FrameLayout android:layout_width="match_parent" android

Android keyboard “Go” button to “Search”

我怕爱的太早我们不能终老 提交于 2019-12-21 04:23:35
问题 can any one tell how to get "Search" in place of "Go" or "Done" button in android keyboard. (not magnifying glass ) . 回答1: Try myEditText.setImeActionLabel("Search",EditorInfo.IME_ACTION_UNSPECIFIED) . IME_ACTION_UNSPECIFIED allows you to put whatever text you want in the button. 回答2: something like this android:imeOptions="actionSearch" might work. in your case there are also other options like android:imeActionLabel="Search" EDIT please check this thread as well. LINK accroding to the above

How to check if the native/hardware keyboard is used?

一世执手 提交于 2019-12-21 02:43:11
问题 I want to check if the native/hardware keyboard is used, and also if possible I want to disable the third party keyboards. My goal is simple I use just the native android soft keyboard for entering values in my edit boxes and no other keyboard should be able to this Thanks EDIT I know it is not good idea to do what I am trying to do, I know that the basic idea of android is to have intents and activities and services who know to handle some types of intent according intent-filter. But this in

Emoji Keyboard support for EditField in android

心已入冬 提交于 2019-12-21 02:42:07
问题 My application uses Android 4.0 on Samsung Galaxy S3. I want to integrate Emoji character support in EditText field in Android application. Can anyone suggest me, how can I achieve it? For example, In whatsapp and wechat application, TextField does support Emoji keyboard characters, but in my application it shows ? for each character I type using Emoji keyboard. text_message = (EditText) findViewById(R.id.editText1); text_view = (textView) findViewById(R.id.textView1); btntest = (Button)

View moves with soft keyboard, blocking other UI objects

点点圈 提交于 2019-12-20 23:26:41
问题 I've got a container view that I'd like to stay at the bottom of my view at all times that sits below a ScrollView. The ScrollView has a handful of UI objects, one being a EditText object. Currently, when the user taps inside of the EditText object, the android-softkeyboard appears, and brings the container view with it, and blocks some UI objects. How can I get that container view to stay at the bottom of the layout at all times and not move with the keyboard when it appears? Here's a

How to keep a bottom nav bar from being pushed up on keyboard shown

一世执手 提交于 2019-12-20 16:30:13
问题 How can i create a sticky footer that wont be moved up with the view when the softkey keyboard popups up? Below is an image example of my current setup and what i want to achieve. I have a scrollview that contains my page content and a linearlayout that is aligned to the parent bottom that acts as a nav bar. Problem is that when the keyboard popups, it pushes my entire view up, including the bottom nav section. I do not want to disable the automatic pushing up of the view (by setting android

How do i add words to the suggestions on top of the soft keyboard

允我心安 提交于 2019-12-20 14:43:27
问题 Is there any way to add words to the suggestions in the soft keyboard? For a specific Edittext field i would like to add a list of names to the suggestions that pops up on top of the soft keyboard in android 2.0. Does anyone know if this is possible? 回答1: Here is the source code of the soft keyboard. If you go through the code, you will see that it uses a Suggest class which inside has different dictionaries. If you want to add words for a specific EditText you would need to add and remove or

Hide Soft keyboard on return key press

吃可爱长大的小学妹 提交于 2019-12-20 11:50:58
问题 I've searched half a dozen other answers on SO, but haven't found one that works. All I'm trying to do is dismiss the soft keyboard when the user presses the enter button. (The equivalent of the insanely easy iOS 'resignKeyboard' call.) In the following code, the onEditorAction method does not get called. I've set up an EditText view in my XML file and the code in my fragment is as follows: @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle