How do I get the soft keyboard identifier in android -


i'd soft keyboard identifier in android purpose of determining keyboard height. end goal want reposition view on screen vertically centered between top of keyboard , bottom of status bar. can status bar height following code:

int statusbarheight = 0; int resourceid = resources.getidentifier("status_bar_height", "dimen", "android"); if(resourceid > 0) {     statusbarheight = resources.getdimensionpixelsize(resourceid); } 

can height of soft keyboard in similar way? using xamarin because sharing backend between ios app , android app, code seems pretty similar android. creating views entirely in code prefer; question how can keyboard height in code in order position view in code?

you can using viewtree observer. root view, you'll able calculate new size when keyboard appears.

the question below may you, helped me:

is there way in android height of virtual keyboard of device


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -