프로젝트
GitHub에서 보기
yingLanNull/HideKeyboard
소개
仿iOS输入法点击输入框以外区域 自动隐藏软键盘轻量级库 , Imitation iOS automatic hidden soft keyboard
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalHidekeyboard
Abstract
Modelled on the iOS implementation click on the input box area, soft keyboard hide, a super easy to use library of lightweight.
Chinese Documents
Gif

Demo
Usage
Step 1
Gradle
dependencies {
compile 'com.yinglan.keyboard:hidekeyboard:1.2.0'
}
Step 2
In Java Code
The main method
HideUtil.init(context);
OR
HideUtil.init(context,viewgroup);
OR
//Forced hidden keyboard
HideUtil.hideSoftKeyboard(activity);
OR
//Forced hidden keyboard
HideUtil.hideSoftKeyboard(view);
OR
//Forced hidden keyboard
HideUtil.hideDialogSoftKeyboard(dialog);
USE
{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
HideUtil.init(this);
}
}
OR
{
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
ViewGroup viewGroup = (ViewGroup) findViewById(R.id.activity_main);
HideUtil.init(this,viewGroup);
}
}
OR
view.findViewById(R.id.view).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
HideUtil.hideSoftKeyboard(getActivity());
}
});
FAQ
The library implementation uses the top layer layout android.R.id.content the OnTouchListener listener, rewrite the monitor to be noted.
License
The work done has been licensed under Apache License 2.0. The license file can be found here. You can find out more about the license at:
관련 프로젝트 살펴보기
불러오는 중…