crysis21 / keyboardheightprovider Goto Github PK
View Code? Open in Web Editor NEWGet android keyboard height using an overlay popup-window
Get android keyboard height using an overlay popup-window
From Crashlytics:
Fatal Exception: java.lang.IllegalStateException: windowInsets must not be null
at com.hold1.keyboardheightprovider.KeyboardHeightProvider.getTopCutoutHeight(KeyboardHeightProvider.java:82)
at com.hold1.keyboardheightprovider.KeyboardHeightProvider.computeKeyboardState(KeyboardHeightProvider.java:65)
at com.hold1.keyboardheightprovider.KeyboardHeightProvider.access$computeKeyboardState(KeyboardHeightProvider.java:18)
at com.hold1.keyboardheightprovider.KeyboardHeightProvider$getGlobalLayoutListener$1.onGlobalLayout(KeyboardHeightProvider.java:55)
at android.view.ViewTreeObserver.dispatchOnGlobalLayout(ViewTreeObserver.java:1056)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2628)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1721)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7598)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:966)
at android.view.Choreographer.doCallbacks(Choreographer.java:790)
at android.view.Choreographer.doFrame(Choreographer.java:725)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:951)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Keyboard height providing is deprecated on target api 29, is there any solution? Please help
when calling edittext.error = "any text" the error is show as kind of overlay. While such an error is visible, the OnGlobalLayoutListener in KeyboardHeightProvider is not notified.
This should not be a big issue when using new error approach via TextInputLayout.
This issue came to only in Android Studio Arctic Fox | 2020.3.1 Latest version
I replace this dependency with the latest one but the problem is the same.
Could not find ro.holdone.keyboardHeightProvider:1.0.1:.
Required by:
project :app
I can't understand what to do to resolve this issue.
, kindly help what is wrong with the server , its not giving responses .
The height that I receive when the keyboard is displayed is the height of my whole screen.
On OnePlus6, Android 9 Pie
Reported on Samsung phones (Samsung Galaxy S8). When using system setting: "Settings -> Display > Navigation Bar > Show and hide button" to hide the Navigation Bar, then the KeyBoardHeightProvider reports negative value for KeyBoardHeight. I helped myself by changing the calculation to:
val keyboardHeight = Math.max(screenSize.y + notchHeight - rect.bottom, 0)
Hi, i saw your lib need to attach keyboard function to activity, does it provide to get height at run time?
Recently having issues fetching library from bintray.
Hello Bro... Still, it shows the same error after updating the latest library 1.0.3. I am attaching the screenshot of Gradle to better understand the exact error.
Execution failed for task ':app:mergeDebugNativeLibs'.
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find ro.holdone.keyboardHeightProvider:1.0.3:.
Required by:
project :app
[Help Needed]The Screen Flickers on Opening the keyboard and layout moves up and comes down.
Does the height of keyboard includes the toolbar height? status bar of device?
I'm getting 747 as height, what all it includes? I want to show a button just above the keyboard.
https://search.maven.org/artifact/ro.holdone/keyboardheightprovider/1.0.1/aar
depends on unspecified
artifact:
<dependencies>
<dependency>
<groupId/>
<artifactId>unspecified</artifactId>
<version/>
</dependency>
<dependency>
<groupId>androidx.appcompat</groupId>
<artifactId>appcompat</artifactId>
<version>1.3.0</version>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk7</artifactId>
<version>1.5.20</version>
</dependency>
<dependency>
<groupId>com.jakewharton.timber</groupId>
<artifactId>timber</artifactId>
<version>4.7.1</version>
</dependency>
</dependencies>
Java examples would be helpful for those of us who haven't had the time to learn Kotlin.
Could not find ro.holdone.keyboardheightprovider:1.0.2
How can i fix it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.