Disable soft keyboard when using ViewFlipper - android

I am using ViewFlipper to swipe through different layouts each having their own EditText boxes. When I swipe to next/previous child, the soft keyboard automatically pops up even if I disabled using android:windowSoftInputMode="stateAlwaysHidden" for the activity in the manifest file.
I want to disable the automatic popping up of the soft keyboard and make it appear only if the user clicks on EditText box. Can somebody help?

Solved it by including
android:focusableInTouchMode="true" in the parent LinearLayout of each child.

Related

ScrollView is not showing Editext after cliking on it and KeyBoard pops up

I have a problem and I don't find how to fix it.
I have an editText in my view, which is in a scrollView. When I click on it, keyboard shows up, and then I have to scroll to show my editext on my screen.
EDIT: My editText isn't hidden behind my keyboard, because my scrollview is adapted to my view when keyboard shows up. I've set
android:windowSoftInputMode="adjustResize"
in my manifest
I show you with screens of my App.
Thank you very much

Prevent Linear layout scrolling up when soft keyboard shown

I have an EditText visible in a LinearLayout that I don't want to move when the soft keyboard is shown. The reason I don't want it to move is because I want to control the items above and adjust their sizes to make the EditText and the content it controls below to become visible.
Is it possible to prevent the screen moving at all once the soft keyboard is shown?
Note: I am using an activity with the toolbar hidden.
I have solved this - I have added the SetSoftInputMode to AdjustNothing to the OnCreate method. Doing this in the xml doesn't do anything, but in the code does.
In your AndroidManifest.xml file, go to your activity and add this.
<activity
...
android:windowSoftInputMode="adjustNothing"
/>
your views will remain in the same position

How do you hide floating action buttons from the keyboard?

I have FloatingActionButtons and FloatingActionMenus in CoordinatorLayouts, but I also have some EditTexts in there too, with the adjustPan window mode. But when I go to click the EditTexts, the floating buttons/menus come up along with the keyboard and somewhat block the visible area (such as the row containing the EditText). Can I somehow prevent the floating items from coming up with the keyboard?
There is a library which can listen to keyboard visibility, if the keyboard is visbile make the FAB to GONE or INVISIBLE.
https://github.com/yshrsmz/KeyboardVisibilityEvent

Show layout when soft keyboard opens

There is a CardView with an EditText and when the keyboard opens, it is placed right below the EditText. But as shown below, the keyboard is too close to the EditText and it is hard to press the "send" button because there is not enough space.
EditText:
EditText with focus:
Is there any way to show the keyboard after the end of the CardView?
I saw some similar questions here, but none of them provide a solution that I need. Some answers suggest to set a paddingBotton in EditText, but that is not what I want. I don't want space, I want to show the end of the CardView too.
Note that I don't want to resize the layout, so "adjustResize" is not the solution and I'm already using "adjustPan" in AndroidManifest.xml
<activity
...
android:windowSoftInputMode="adjustPan" />
Any thoughts?
If you are using scrollview. you can do one thing is to scroll your scrollview as your requirement
Please refer below code for example
ScrollView sv =(ScrollView)findViewById(R.id.scrl);
sv.scrollTo(0, sv.getBottom());
or
sv.fullScroll(View.FOCUS_DOWN);
this action you can perform on soft input of Enter key.
There is also one other solution you can hide the suggestion of keyboard by giving
android:inputType="textNoSuggestions"

soft keyboard lifts tabs upwords even if we close the keyboard in Android

I am stuck with this problem, after hiding soft keyboard the TABS still upwards.
I am using SCROLL_VIEW in my XML, but when I delete scroll keyboard works fine.
i have also used android:windowSoftInputMode="adjustPan" in manifest.

Categories

Resources