Soft Keyboard will not show in graphical view - android

I am developing a softkeyboard I have tried several codes in the main.xml file but none of the codes display the keyboard in graphical view
Please Help

The soft keyboard won't show up in the graphical view because it is a custom view -- the graphical view is designed for basic android widgets only. When you start using anything but the main Android widgets (i.e. TextView, ScrollView, Button, etc.), you're going to have to code it in XML.
The keyboard's layout and drawing methods change dynamically based on the number of keys, the keyboard theme, key icons, etc. This happens at runtime and thus cannot be displayed before the app is run.

Related

ImageView in Custom Keyboard

i like to show an image view in my android custom keyboard (in app not a system keyboard). So far i tried adding one but it does not appear in the view. Do you know whether android supports adding custom views into a keyboard ?

How to arrange the layout when Soft Keyboard opens up in android

I have searched for various answers for this particular problem but could not find one. I am developing an android application and I am currently up to arranging the layouts.
My problem is when a soft keyboard opens up in a form containing lots of input fields, the buttons at the bottom also keeps coming up. What I want is the buttons should not come up and along with this the form should be scrollable to bottom of the layout while the soft keyboard is still visible.
Before I was trying lots of modes combinations for windowSoftInputMode inside AndroidManifest.xml in the respective activity, but could not get any satisfactory result.
Screenshots:
The normal form (shown the bottom part) looks like this:
When the soft keyboard opens up, it cuts the lower portion i.e. I am unable to scroll the layout further.
I somehow managed to remove the buttons using following code, I do not know whether this is correct or not:
<activity
android:name=".usermanagement.SignUp"
android:label="साइन अप"
android:windowSoftInputMode="stateVisible|adjustPan" />
Now I am wondering whether I can scroll to the bottom of the layout while keeping the soft keyboard active and not showing the buttons(Home button and Next button)

Custom keyboard containing scrollview

I've been trying to create a custom android keyboard. I've started looking over "Creating an Input Method" guide from Google and I was able to create a regular keyboard using the Keyboard and KeyboardView elements.
The problem is that my keyboard needs a scrollview (or a recyclerview) so the user can scroll and see more items of the keyboard - but I don't think this can be achieved using the default Keyboard and KeyboardView elements.
I also tried to override the onCreateInputView method and add a custom layout that contained a scrollview - but the height of the keyboard was taking the entire screen and the user couldn't interact with the app anymore.
So if anyone has some ideas on how I can overcome this issues I would love to hear your suggestions.
Thanks

Adjust layout when soft keyboard is visible

I am developing an application for android devices, which manages TV channels and shows. In it there is an option for the user to add channels in the system using a custom widget. The widget uses autocompleteTextView. My layout does not adjust itself when the soft keyboard appears.
These are the 2 states of the layout:
The keyboard blocks the user from viewing the options in the dropdown and the field below it. I have already tried the solution here and here. But none of them got it to work.
I want to move the layout of the widget itself, rather then the whole layout behind. How to go about this problem?

Android soft keyboard not panning web view

The original problem I am fighting is more complex but for investigating purposes I have simplified the test case to the following:
Single fullscreen activity
Programmatically created web view that occupies roughly half of the horizontal screen space, 90% of the vertical space and is added to the root view via within the onCreate call:
ViewGroup parent = (ViewGroup) getWindow().getDecorView().getRootView();
parent.addView(myWebView);
web view opens to google.com via:
loadUrl("http://google.com")
AndroidManifest.xml has the property:
"android:windowSoftInputMode="adjustPan"
When clicking on the search box on the google page the keyboard pops up but the web view itself is not shifted up as adjustPan indicates should happen. The main activity also has a native text field that when clicked will shift the entire layout (including web view) up as expected.
The behavior is present on 4.2.2 on both a Nexus 7 and Galaxy Nexus.
So the question is how can I have the windowSoftInputMode property adjustPan be applied correctly to a web view instance so that when the soft keyboard is displayed the entire web view is shifted up by the vertical space taken up by the keyboard.
Before I go down the road of trying to manipulate the layout manually within onMeasure I want to see if there is a consistent / better way to handle this. The browser obviously handles this situation correctly so not sure why the web view is not able to handle this.
One thing to note is that making the web view fullscreen or a separate activity are not possible options due to an existing architecture that I am not able to change.
If we use the full screen without action bar adjustResize will not work. See this thread for details adjustPan not preventing keyboard from covering EditText

Categories

Resources