2013年7月20日星期六

android Soft keyboard blocking webview input box in the top of the page

One of my activity with webview opens a web page, but the page content of the input box enter the soft keyboard to pop up when the input box, very convenient, the Internet to find some solutions such as in the manifest file plus android: windowSoftInputMode = "stateHidden | adjustResize phrase the question is set full phrase is hidden system title bar now hide the system title bar if the sentence deleted, no problem, If you add this Hide system title bar on top of android: windowSoftInputMode = "stateHidden | adjustResize this sentence does not work, and now I have this activity requirement is to set up full-screen, seeking expert answers troubled for a long time < >

------ Solutions ----------------------------------- --------------------- < >
Set full screen, there are two ways, as follows:

set in code:
public void onCreate (Bundle savedInstanceState) {
super.onCreate (savedInstanceState);

/ / set no title
requestWindowFeature (Window.FEATURE_NO_TITLE);
/ / Set fullscreen
getWindow (). setFlags (WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);

setContentView (R.layout.main);
}


In the configuration file in the manifest

package = "com.andyidea"
android: versionCode = "1"
android: versionName = "1.0">



android: theme = "@ android: style / android.NoTitleBar.Fullscreen"
android: label = "@ string / app_name" ;>








As for your the soft keyboard, take a look through the full set, use the android: windowSoftInputMode = "stateHidden | adjustResize can achieve the effect you want!
< >

------ Solutions ----------------------------------- --------------------- < >
Try
android: windowSoftInputMode = "adjustPan" < >

------ Solutions ----------------------------------- --------------------- < >
Bangding, but also more to this issue. . .
you add a layer of scrollView in WebView try it out? I added into the black, and you try it, I say if the settlement. . . I was out of the box with the interface. . . Depressed ing < >

没有评论:

发表评论