安卓实现软键盘的弹出

安卓实现软键盘的弹出

先总结一堆代码中涉及到的知识点:

(1)旋转角度
imageView.animate().rotation(90).setDuration(1000);
//.setDuration(1000):简单来说就是设置一个时长,目前个人用到的多在设置动画的播放时长上,
如setDuration(1000),则表示该动画要在1秒播放完成,参数值表示毫秒值,本代码不需要这个,
.animate().rotation(90)这个是表示旋转90度的意思,这里是要用到的。
(2)安卓中软键盘的一些用法(Android InputMethodManager输入法简介)
对应的包:import android.view.inputmethod.InputMethodManager;

类概述:整个输入法框架(IMF)结构的核心API,应用程序之间进行调度和当前输入法交互,
你可以用Context.getSystemService()取得这一接口的实例,比如本代码中的:
InputMethodManager inputManager =
 (InputMethodManager) send_edt.getContext()
 .getSystemService(Context.INPUT_METHOD_SERVICE);
原创文章 13 获赞 9 访问量 4270

猜你喜欢

转载自blog.csdn.net/weixin_43577675/article/details/88382368