All Projects → yoyoyaobin → Preventkeyboardblockutil

yoyoyaobin / Preventkeyboardblockutil

Licence: apache-2.0
一句代码解决软键盘挡住相关控件,适用于任何布局,一般作用于登录界面,注册界面等,当软键盘弹出时避免挡住登录(注册)按钮。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Preventkeyboardblockutil

Kll
KLL Compiler
Stars: ✭ 105 (-17.32%)
Mutual labels:  keyboard
Armenian Phonetic
Armenian phonetic keyboard layout for Mac OSX. Հայերեն ֆոնետիկ ստեղնաշար Mac OSX-ի համար։
Stars: ✭ 110 (-13.39%)
Mutual labels:  keyboard
Ng Keyboard Shortcuts
Dead Simple Keyboard Shortcuts Management for Angular
Stars: ✭ 121 (-4.72%)
Mutual labels:  keyboard
React Native Keyboard Spacer
Plug and play react-native keyboard spacer view.
Stars: ✭ 1,475 (+1061.42%)
Mutual labels:  keyboard
Tkkeyboardcontrol
TKKeyboardControl adds keyboard awareness and scrolling dismissal (like iMessages app) to any view with only 1 line of code for Swift.
Stars: ✭ 110 (-13.39%)
Mutual labels:  keyboard
Norman
Norman keyboard layout - alternative to QWERTY for touch typing in English
Stars: ✭ 112 (-11.81%)
Mutual labels:  keyboard
Keyboardavoider
The missing interactive keyboard in SwiftUI for iOS
Stars: ✭ 105 (-17.32%)
Mutual labels:  keyboard
React Native Keyboard Accessory View
Keyboard accessory (sticky) view for your React Native app. Supports interactive dismiss on iOS.
Stars: ✭ 128 (+0.79%)
Mutual labels:  keyboard
Keyboard
⌨ Toward a more useful keyboard
Stars: ✭ 1,522 (+1098.43%)
Mutual labels:  keyboard
Ergotravel
A Portable Ergonomic Split Keyboard inspired from the ErgoDox, Let's Split and Minidox
Stars: ✭ 120 (-5.51%)
Mutual labels:  keyboard
Android Keyboard
Android Keyboard with 180+ dictionaries. Support swipe input (sliding input), Emoji keyboard, AI predictions, dictionaries downloading, and keyboard themes.
Stars: ✭ 108 (-14.96%)
Mutual labels:  keyboard
G213colors
A Python script to change the key colors on a Logitech G213 Prodigy Gaming Keyboard
Stars: ✭ 110 (-13.39%)
Mutual labels:  keyboard
Keyboardy
UIViewController extension for convenient keyboard management.
Stars: ✭ 113 (-11.02%)
Mutual labels:  keyboard
Karabiner Driverkit Virtualhiddevice
Stars: ✭ 108 (-14.96%)
Mutual labels:  keyboard
Aquatouch
Dynamic Custom Macros for your MacBook TouchBar! (Supports 40+ Apps and Websites)
Stars: ✭ 125 (-1.57%)
Mutual labels:  keyboard
Hyperapp Fx
Effects for use with Hyperapp
Stars: ✭ 105 (-17.32%)
Mutual labels:  keyboard
Commute Deck
A computer built into a mechanical keyboard.
Stars: ✭ 112 (-11.81%)
Mutual labels:  keyboard
Pheromone keyboard
Stars: ✭ 128 (+0.79%)
Mutual labels:  keyboard
Browser Media Keys
Lets you control many web players using the media keys on your keyboard.
Stars: ✭ 125 (-1.57%)
Mutual labels:  keyboard
React Native Emoticons
react native emoticons(表情), including emoji😁
Stars: ✭ 119 (-6.3%)
Mutual labels:  keyboard

PreventKeyboardBlockUtil

image

image

目的

当前官方提供的三个软键盘方案,一个会顶起输入框并将布局往上推(SOFT_INPUT_ADJUST_PAN),一个会顶起输入框并挤压布局(SOFT_INPUT_ADJUST_RESIZE),一个直接弹出键盘其他不做任何处理(SOFT_INPUT_ADJUST_NOTHING),而前两个方案最多只能将获得焦点的输入框顶起。本库目的解决此问题,配置简单,欢迎使用。

使用方式

1.在project的build.gradle里配置

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

2.在app的build.gradle里配置

dependencies {
           implementation 'com.github.yoyoyaobin:PreventKeyboardBlockUtil:1.0.8'
   }

3.在你的activity用上

@Override
    protected void onResume() {
        super.onResume();
        PreventKeyboardBlockUtil.getInstance(this).setBtnView(btnView).register();
    }

    @Override
    protected void onPause() {
        super.onPause();
        PreventKeyboardBlockUtil.getInstance(this).unRegister();
    }

其中,setBtnView传入的view是你想要在键盘弹出时置于键盘上的最后一个控件,比如触发登录的按钮。

LICENSE

详见LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].