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

河南安阳网站建设哈尔滨网站建设工作

河南安阳网站建设,哈尔滨网站建设工作,网站建设的分阶段步骤,如何建网站保定在Android的EditText中输入电话号码时,如何设置(xxx)xxx-xxxxx格式的电话号码#xff1f;我想要(,),-字符自动添加到特定位置.我写了代码,但仅在andorid 2.2版本中有效,而在上述版本中无效.我在stackoverflow中搜索了更多问题.请检查我的代码#xff1a;phone.addTextChanged…在Android的EditText中输入电话号码时,如何设置(xxx)xxx-xxxxx格式的电话号码我想要(,),-字符自动添加到特定位置.我写了代码,但仅在andorid 2.2版本中有效,而在上述版本中无效.我在stackoverflow中搜索了更多问题.请检查我的代码phone.addTextChangedListener(new TextWatcher () {Overridepublic void afterTextChanged(Editable chars) {// TODO Auto-generated method stub}Overridepublic void beforeTextChanged(CharSequence s, int start, int count,int after) {// TODO Auto-generated method stub}Overridepublic void onTextChanged(final CharSequence s, final int start, int lengthBefore,int lengthAfter) {// TODO Auto-generated method stubcount start;/*if (phone.getText().length() 0) {phone.append(();phone.setSelection(1);}else if (count 3) {phone.append());}else if (count 7) {phone.append(-);}*/}});phone.setOnKeyListener(new OnKeyListener (){Overridepublic boolean onKey(View arg0, int arg1, KeyEvent arg2) {// TODO Auto-generated method stubif(arg1 KeyEvent.KEYCODE_DEL){if(count 0){count count - 1;}}else{if(phone.getText().length() 0){phone.append(();}else{if(count 3){phone.append());}else if(count 7){phone.append(-);}}}return false;}});}Logcat显示为01-03 15:07:23.529: W/InputManagerService(153): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy40900f8801-03 15:07:23.529: D/StatusBarPolicy(221): mFullChargeListener01-03 15:07:25.749: V/AudioPolicyManager(84): startOutput() output 1, stream 1, session 148801-03 15:07:25.749: V/AudioPolicyManager(84): changeRefCount() stream 1, count 101-03 15:07:25.749: V/AudioPolicyManager(84): getDeviceForStrategy() from cache strategy 0, device 201-03 15:07:25.749: V/AudioPolicyManager(84): getNewDevice() selected device 201-03 15:07:25.749: V/AudioPolicyManager(84): setOutputDevice() output 1 device 2 delayMs 001-03 15:07:25.749: V/AudioPolicyManager(84): setOutputDevice() setting same device 2 or null device for output 101-03 15:07:25.749: V/AudioPolicyManager(84): releaseOutput() 101-03 15:07:25.769: V/AudioHardwareMSM72XX(84): open driver01-03 15:07:25.769: V/AudioHardwareMSM72XX(84): get config01-03 15:07:25.769: V/AudioHardwareMSM72XX(84): set config01-03 15:07:25.769: V/AudioHardwareMSM72XX(84): buffer_size: 480001-03 15:07:25.769: V/AudioHardwareMSM72XX(84): buffer_count: 201-03 15:07:25.769: V/AudioHardwareMSM72XX(84): channel_count: 201-03 15:07:25.769: V/AudioHardwareMSM72XX(84): sample_rate: 4410001-03 15:07:25.939: W/AudioFlinger(84): write blocked for 164 msecs, 61 delayed writes, thread 0xcdd001-03 15:07:26.009: V/AudioPolicyManager(84): stopOutput() output 1, stream 1, session 148801-03 15:07:26.009: V/AudioPolicyManager(84): changeRefCount() stream 1, count 001-03 15:07:26.009: V/AudioPolicyManager(84): getNewDevice() selected device 001-03 15:07:26.009: V/AudioPolicyManager(84): setOutputDevice() output 1 device 0 delayMs 001-03 15:07:26.009: V/AudioPolicyManager(84): setOutputDevice() setting same device 0 or null device for output 101-03 15:07:26.699: V/AudioPolicyManager(84): startOutput() output 1, stream 1, session 148901-03 15:07:26.699: V/AudioPolicyManager(84): changeRefCount() stream 1, count 101-03 15:07:26.699: V/AudioPolicyManager(84): getDeviceForStrategy() from cache strategy 0, device 201-03 15:07:26.699: V/AudioPolicyManager(84): getNewDevice() selected device 201-03 15:07:26.699: V/AudioPolicyManager(84): setOutputDevice() output 1 device 2 delayMs 001-03 15:07:26.699: V/AudioPolicyManager(84): setOutputDevice() setting same device 2 or null device for output 101-03 15:07:26.699: V/AudioPolicyManager(84): releaseOutput() 101-03 15:07:26.859: V/AudioPolicyManager(84): stopOutput() output 1, stream 1, session 148901-03 15:07:26.859: V/AudioPolicyManager(84): changeRefCount() stream 1, count 001-03 15:07:26.859: V/AudioPolicyManager(84): getNewDevice() selected device 001-03 15:07:26.859: V/AudioPolicyManager(84): setOutputDevice() output 1 device 0 delayMs 001-03 15:07:26.859: V/AudioPolicyManager(84): setOutputDevice() setting same device 0 or null device for output 101-03 15:07:27.499: I/StatusBarPolicy(221): BAT. status:5 health:2
http://www.zqtcl.cn/news/6815/

相关文章:

  • 和什么人合作做游戏视频网站微商可以做网站推广吗
  • 制作自己的网站学校wordpress the7 3.80
  • 网站建设咨自助建站网站模板
  • 肃宁县做网站成都鸿邑网站建设
  • 推荐个做兼职的网站大连网站如何制作
  • jsp ajax网站开发典型实例 pdf百度指数功能
  • 机关单位网站建设合同东莞小程序开发解决方案
  • 国外平面设计教程网站宗亲网站开发
  • 网站建设中页面模板乐陵seo推广
  • 怎么制作购物网站电商之家官网
  • etsy网站网站关键词提交
  • 电子商务实网站的建设课件推广方法和技巧
  • wordpress资料图片不显示北京seo优化推广
  • 快速生成网站网站建设的界面f分
  • 网站设计属于什么分类号做印刷在哪个网站接单好好
  • 东莞市小程序定制开发丨网站建设体育局网站建设方案
  • 万柳网站建设上海百度整站优化服务
  • 织梦cms仿某作文网站整站源码(带采集)安装数据库北京企业网站建设飞沐
  • 设计感很强的中文网站做淘宝网站代理
  • 网站开发项目有哪些给个人网站做百度百科
  • 做有弹幕视频网站天津seo外包团队
  • 青岛seo网站排名南京网页空间
  • 网站的数据库在哪里企业门户网站开发代码
  • 沈北新区建设局网站创建商务站点的主要工作
  • 嘉兴建站服务石狮网站建设哪家好
  • 云主机如何做两个网站专做装修的网站
  • 苏州企业做网站黄浦网站推广公司
  • 服装网站开发微信上的小店微商城怎么开通
  • 一家公司为什么要建官方网站万网可以花钱做网站吗
  • 做网站必须租服务器吗四川省建筑施工企业人员考试平台