Skip to content

anxiaoyi/PopEditText

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

PopEditText

在聊天界面中,一般底部是一个EditText,点击EditText旁边的语音图标或者表情图标都可以弹出底部的一些小工具。但在此过程中,键盘的弹出或者隐藏表现的不尽友好。有时候显示或者隐藏键盘的时候,底部的工具Container View总是往上弹一下然后再下去。这个demo演示了如何让Keyboard结合EditText隐藏或者显示的更平滑一些。

In a word, this demo is aim to demostrate how to pop or hide keyboard with EditText in a more elegant way.

Demonstrate

Download Demo: Download

How to use:

mPopEditText.setContainer("The bottom container which holds the views that you want to show.");
mButton.setOnClickListener(new View.OnClickListener(){ 
	@Override
	public void onClick(View v){ 
		mPopEditText.dispatchOnClickEvent(v, "The view that you want to show when user click view v.");
	}
});

Contact me:

  1. QQ:1291700520
  2. Email:[email protected]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages