当前位置: 首页 > news >正文

怎么做营销网站推广/5118站长网站

怎么做营销网站推广,5118站长网站,怎么找人做动漫视频网站,wordpress 导航链接8种机械键盘轴体对比本人程序员,要买一个写代码的键盘,请问红轴和茶轴怎么选?一个软键盘管理类,单例模式实现的。/*** 类功能描述:软键盘管理界面**/public class InputManager {private Context context;public stati…

66b52468c121889b900d4956032f1009.png

8种机械键盘轴体对比

本人程序员,要买一个写代码的键盘,请问红轴和茶轴怎么选?

一个软键盘管理类,单例模式实现的。

/**

* 类功能描述:软键盘管理界面

*

*/

public class InputManager {

private Context context;

public static InputManager inputManager;

private InputMethodManager imm;

private InputManager(Context context){

this.context = context;

// 得到InputMethodManager的实例

imm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);

totleShowSoftInput();

}

public static InputManager getInstances(Context context){

if(inputManager == null){

inputManager = new InputManager(context);

}

return inputManager;

}

/**

* 切换软键盘的显示与隐藏

*/

public void totleShowSoftInput(){

imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,

InputMethodManager.HIDE_IMPLICIT_ONLY);

}

/**

* 判断软键盘 弹出

*/

public void showSoftInput(){

if (!imm.isActive()) { //

imm.toggleSoftInput(0, InputMethodManager.RESULT_SHOWN);

}

}

/**

*关闭软键盘

*针对于 有一个EdtxtView

* @param input_email

*/

public void hideSoftInput(EditText input_email){

if (imm.isActive()) {

// 关闭软键盘,开启方法相同,这个方法是切换开启与关闭状态的

imm.hideSoftInputFromWindow(input_email.getWindowToken(), 0);

}

}

/**

* 针对于 有多个EdtxtView

* 关闭所有的软键盘

*/

public void hideALlSoftInput(){

View view = ((Activity) context).getWindow().peekDecorView();

if (view != null) {

imm.hideSoftInputFromWindow(view.getWindowToken(), 0);

}

}

}

EditText的输入类型android:inputType="none"--输入普通字符

android:inputType="text"--输入普通字符

android:inputType="textCapCharacters"--输入普通字符

android:inputType="textCapWords"--单词首字母大小

android:inputType="textCapSentences"--仅第一个字母大小

android:inputType="textAutoCorrect"--前两个自动完成

android:inputType="textAutoComplete"--前两个自动完成

android:inputType="textMultiLine"--多行输入

android:inputType="textImeMultiLine"--输入法多行(不一定支持)

android:inputType="textNoSuggestions"--不提示

android:inputType="textUri"--URI格式

android:inputType="textEmailAddress"--电子邮件地址格式

android:inputType="textEmailSubject"--邮件主题格式

android:inputType="textShortMessage"--短消息格式

android:inputType="textLongMessage"--长消息格式

android:inputType="textPersonName"--人名格式

android:inputType="textPostalAddress"--邮政格式

android:inputType="textPassword"--密码格式

android:inputType="textVisiblePassword"--密码可见格式

android:inputType="textWebEditText"--作为网页表单的文本格式

android:inputType="textFilter"--文本筛选格式

android:inputType="textPhonetic"--拼音输入格式

android:inputType="number"--数字格式

android:inputType="numberSigned"--有符号数字格式

android:inputType="numberDecimal"--可以带小数点的浮点格式

android:inputType="phone"--拨号键盘

android:inputType="datetime"

android:inputType="date"--日期键盘

android:inputType="time"--时间键盘

http://www.lbrq.cn/news/798229.html

相关文章:

  • weui做购物网站的案例/长春网站优化体验
  • 网站空间地址/网站外链发布平台
  • 大连住建局官网网站/长春网站建设公司哪个好
  • 隐藏网站后台/网络营销策划书1000字
  • logo设计网站免费无水印/seo实战培训视频
  • 内容营销的方法/上海优化seo公司
  • 厦门高端网站建设公/网站大全软件下载
  • 做旅行社业务的网站都有哪些/网络推广图片
  • 哈尔滨做网站费用报价/微信公众号seo
  • 做网站项目后台的/seo百度贴吧
  • 网站建设到备案/电脑培训班价目表
  • 2017年最新网站设计风格/百度站长收录
  • 5ucms怎样做网站自适应/在哪里打广告效果最好
  • 钦州网站建设/电商网站建设哪家好
  • 网站备案登陆/全部列表支持安卓浏览器软件下载
  • 网站个人备案和企业备案/企业网站建设公司
  • 自助建站帮助网/信息流广告模板
  • 网站转化怎么做/福州网站seo
  • 网站英文地图怎么做/厦门seo外包平台
  • 镇江网站建设 的公司/济南网站自然优化
  • 网站的空间的提供商/互联网营销的方法有哪些
  • 离石做网站的网络公司/今天时政新闻热点是什么
  • 护栏板销售网站怎么做/全网营销的公司
  • 广告投放网站平台/网络营销的特点有几个
  • 品牌商城网站建设公司/营销软件网站
  • 赣州网站建设精英/手机推广软文
  • 网页设计建站/优秀营销案例分享
  • 专门做酒店设计的网站/廊坊网络推广优化公司
  • 视频素材交易网站建设/提交链接
  • 建材网站建设/关键词是什么
  • 快速了解决策树
  • Redis深度剖析:从基础到实战(上)
  • grafana/lock-stack 日志 Pipeline 配置
  • 异常检测:算法分类及经典模型概览
  • 2025年7月31日
  • 了解SQL