Giter Club home page Giter Club logo

keyboardheightprovider's People

Contributors

crysis21 avatar mouzhik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

keyboardheightprovider's Issues

Crash in v0.0.9

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)

State is not updated while error is shown on editText

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.

Could not find ro.holdone.keyboardHeightProvider:1.0.1

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.

Height of full screen

The height that I receive when the keyboard is displayed is the height of my whole screen.
On OnePlus6, Android 9 Pie

KeyboardHeight is negative instead of zero

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)

Could not find ro.holdone.keyboardHeightProvider:1.0.3

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

Screenshot 2021-09-13 at 1 33 14 PM

Query not issue

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.

Maven issue

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 example

Java examples would be helpful for those of us who haven't had the time to learn Kotlin.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.