Monitor keyboard height tools

Overview

KeyboardX

Prepare

  1. Add jitpack to build.gradle
allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
  1. Add dependency
dependencies {
	implementation 'com.github.ssseasonnn:KeyboardX:1.0.0'
}

Usage

  • Basic Usage
class MainActivity : AppCompatActivity() {

    private val keyboardX by lazy { KeyboardX() }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val binding = ActivityMainBinding.inflate(layoutInflater)
        setContentView(binding.root)

        keyboardX.heightFlow().onEach { height ->
            println("Keyboard height is: $height")
        }.launchIn(lifecycleScope)
    }
}

License

Copyright 2021 Season.Zlc

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You might also like...
An Android app that calculates BMI values and results by entering your height and weight
An Android app that calculates BMI values and results by entering your height and weight

BMICalculator BMI 지수는 소수 한자리까지만 출력됨 BMI 결과의 색상은 하단 이미지뷰의 체형별 결과값의 색상과 같음 참고했던 링크

TrackerControl: monitor and control trackers and ads.
TrackerControl: monitor and control trackers and ads.

About TrackerControl Download directly here, from F-Droid, or a feature-reduced version from Google Play. If you have missing features or bugs, join t

Demonstrating Micronaut 3.1.3 conflict between caches in application.yml and MicronautCaffeineCacheMetrics.monitor

This application illustrates an issue with using a caches section in application.yml in conjunction with MicronautCaffeineCacheMetrics.monitor. The co

A performance monitor SDK for Android application

OMagnifier OMagnifier is an Android APM SDK that can be used to monitor the app performance. Features Support Frame rate monitor: floating window for

An application for runners and cyclists. Allows you to monitor your physical activity, weight and receive reminders about workouts.

An application for runners and cyclists. Allows you to monitor your physical activity, weight and receive reminders about workouts.

Environmental-Monitoring-Android-App - This Android App is used to monitor environmental parameters data from remote sensors
Environmental-Monitoring-Android-App - This Android App is used to monitor environmental parameters data from remote sensors

Environmental-Monitoring-Android-App - This Android App is used to monitor environmental parameters data from remote sensors. Parameters includes but not limited to temperature, humidity, air quality, level of Ionizing radiation, ...

  An IoT based automatic alerting device that consists of laser and a precise Light Dependent Resistor to detect the laser which is employed to constantly monitor the fluid level
An IoT based automatic alerting device that consists of laser and a precise Light Dependent Resistor to detect the laser which is employed to constantly monitor the fluid level

An IoT based automatic alerting device that consists of laser and a precise Light Dependent Resistor to detect the laser which is employed to constantly monitor the fluid level. When the fluid level is below the critical level which will be defined by laser, it will alert the patient through buzzer, nurses and doctors through mobile app and the …

Monitor products on the Ubiquiti Store and receive notifications when their availability changes.
Monitor products on the Ubiquiti Store and receive notifications when their availability changes.

UI Spy Monitor products on the Ubiquiti Store and receive notifications when their availability changes. Available as a binary and Docker container. U

Tiny app to monitor permission changes.
Tiny app to monitor permission changes.

Catcher Permission monitor. Tiny app to monitor permission changes. If any app will get INTERNET permission after an update you will get a notificatio

Dismiss your keyboard by tapping anywhere outside it.
Dismiss your keyboard by tapping anywhere outside it.

Keyboard Dismisser What is this? Keyboard Dismisser is a simple library that allows you to dismiss keyboard by tapping anywhere outside it. Currently

A DSL to handle soft keyboard visibility change event written in Kotlin.
A DSL to handle soft keyboard visibility change event written in Kotlin.

About A DSL to handle soft keyboard visibility change event written in Kotlin. How to use? Step 1. Add it in your root build.gradle at the end of repo

Digipad is a simple library for Android that only show a numeric keyboard onscreen
Digipad is a simple library for Android that only show a numeric keyboard onscreen

Digipad is a simple library for Android that only show a numeric keyboard onscreen Adding dependencies Add this to your build.gradle:

A 2020s compatible React Native keyboard avoiding view for Android and iOS that just works.

react-native-keyboard-shift Example Snack coming soon Until then: Clone this repo: git clone https://github.com/FullStackCraft/react-native-keyboard-s

Android Custom View for prevent the view behind on-screen keyboard when edit text is focused
Android Custom View for prevent the view behind on-screen keyboard when edit text is focused

Group Focusable Prevent the view behind on-screen keyboard when edit text is focused in Android UI Download Gradle implementation 'com.akexorcist:grou

Modern Kotlin version of com.example.semitop7.FireTVStyle keyboard

ftv-style-keyboard Modern Kotlin version of com.example.semitop7.FireTVStyle keyboard Manual activation on FireTV via adb shell: adb shell ime enable

Awesome keyboard animator that supports Android SDK 23 ✨
Awesome keyboard animator that supports Android SDK 23 ✨

KeyboardBeautify Awesome keyboard animator that supports Android SDK 23 ✨ This library was created based on the android/user-interface-samples. Previe

100% FOSS keyboard, based on AOSP.
100% FOSS keyboard, based on AOSP.

OpenBoard 100% FOSS keyboard, based on AOSP. Community [matrix] channel Join here Common issues Cannot open settings in MIUI: See issue #46. Contribut

FlorisBoard is a free and open-source keyboard for Android
FlorisBoard is a free and open-source keyboard for Android

FlorisBoard FlorisBoard is a free and open-source keyboard for Android 6.0+ devices. It aims at being modern, user-friendly and customizable while ful

Stetho is a debug bridge for Android applications, enabling the powerful Chrome Developer Tools and much more.

Stetho Stetho is a sophisticated debug bridge for Android applications. When enabled, developers have access to the Chrome Developer Tools feature nat

Comments
  • 有个实际场景问题

    有个实际场景问题

    点击输入框弹起键盘 -> 点击 TEST 转跳页面,这时候键盘会自动关闭,这时候是监听不到的 demo中只有一个表情tab,默认展示,所以看起来没啥问题 实际上项目中可能不止一个表情tab,所以会有显示隐藏逻辑,如果监听不到的情况下,不知道显示哪个,布局就会空在那。 不知道有没有办法能监听到这种情况

    opened by EspoirX 1
Owner
Season
会写点代码
Season
Simple Mobile Tools 172 Dec 26, 2022
A DSL to handle soft keyboard visibility change event written in Kotlin.

About A DSL to handle soft keyboard visibility change event written in Kotlin. How to use? Step 1. Add it in your root build.gradle at the end of repo

Vinícius Oliveira 17 Jan 7, 2023
Modern Kotlin version of com.example.semitop7.FireTVStyle keyboard

ftv-style-keyboard Modern Kotlin version of com.example.semitop7.FireTVStyle keyboard Manual activation on FireTV via adb shell: adb shell ime enable

nikk 1 Oct 4, 2022
Some useful tools

JustWeTools - Some useful tools JustWe 现在有哪些模块? View自定义控件 PaintView画图工具(包含重构压感新版) CodeView代码编辑 ExplorerView文件管理器 ReadView小说阅读器 MarkDownView支持MarkDown语

JustWe 700 Dec 29, 2022
Simple Keyboard can adjustable keyboard height for more screen space

Simple Keyboard About Features: Small size (<1MB) Adjustable keyboard height for more screen space Number row Swipe space to move pointer Delete swipe

Raimondas Rimkus 681 Dec 27, 2022
An app performance monitor(APM) , like "Android Studio profiler", you can easily monitor the performance of your app real time in browser

AndroidGodEye English README.md 中文 README_zh.md Android developer lack of monitoring of performance data,especially in production environment. so we n

AndroidKy 2.5k Dec 29, 2022
Simple Mobile Tools 172 Dec 26, 2022
Nested popup menus with smooth height animations

cascade cascade builds nested popup menus with smooth height animations. It is designed to be a drop-in replacement for PopupMenu so using it in your

Saket Narayan 1.6k Jan 6, 2023