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

新昌县住房和城乡建设局网站火车头采集wordpress博客

新昌县住房和城乡建设局网站,火车头采集wordpress博客,专业的聊城网站建设,北京网站推广机构最近处理一个问题#xff0c;设备有方向键盘#xff0c;做cit中的按键测试#xff0c;发现按方向键第一次按键不能触发该键值#xff0c;而是让屏幕第一个按钮获取焦点#xff0c;然后再次按键#xff0c;则其他正常。问题#xff1a;进入界面第一次按键就要响应对应按键… 最近处理一个问题设备有方向键盘做cit中的按键测试发现按方向键第一次按键不能触发该键值而是让屏幕第一个按钮获取焦点然后再次按键则其他正常。问题进入界面第一次按键就要响应对应按键逻辑不需要焦点。该问题查找了很久最后找到了答案 布局中的按键测试布局中按钮是button或imagebutton。这布局进入时初次会相应方向键原理未知解决方案设置所有按钮clickablefalse防止触屏幕激发主要的是将所有按钮设置 enablefalseimagebutton在xml中设置无效需要在代码中设置 修改如下 Date: Wed Aug 28 18:38:33 2024 0800处理按键测试按钮获取焦点问题Change-Id: I6f317fec43c213761573fb793bc057fd14da71aediff --git a/AndroidManifest.xml b/AndroidManifest.xml index 8e8eb03..23abed9 100644 --- a/AndroidManifest.xmlb/AndroidManifest.xml-87,7 87,7 dataandroid:host83789android:schemeunisoc_secret_code / - /intent-filter/intent-filter /receiverreceiverandroid:namecom.sprd.validationtools.PhaseCheckBroadcastReceiver diff --git a/res/layout/key_test.xml b/res/layout/key_test.xml index 53eba2e..16f2164 100644 --- a/res/layout/key_test.xmlb/res/layout/key_test.xml-3,12 3,6 android:layout_widthfill_parentandroid:layout_heightfill_parentandroid:orientationvertical - Button - android:idid/focus_button - android:layout_width0dp - android:layout_height0dp - android:clickablefalse - /ButtonLinearLayoutandroid:layout_widthfill_parent-21,6 15,7 android:layout_heightwrap_contentandroid:layout_weight1 android:clickablefalse android:enabledfalse android:srcdrawable/voice_up / ImageButton -28,6 23,7 android:layout_width0dip android:layout_heightwrap_content android:layout_weight1 android:enabledfalse android:clickablefalse android:srcdrawable/voice_down / ImageButton -36,6 32,7 android:layout_heightwrap_content android:layout_weight1 android:clickablefalse android:enabledfalse android:srcdrawable/power_off / /LinearLayout -69,6 66,7 android:layout_heightwrap_content android:layout_weight1 android:clickablefalse android:enabledfalse android:gravitycenter android:textCALL / -78,6 76,8 android:layout_heightwrap_content android:layout_weight1 android:gravitycenter android:enabledfalse android:clickablefalse android:srcdrawable/menu android:visibilityvisible / -87,6 87,7 android:layout_heightwrap_content android:layout_weight1 android:clickablefalse android:enabledfalse android:srcdrawable/camera / ImageButton android:idid/home_button -95,6 96,7 android:layout_weight1 android:clickablefalse android:gravitycenter android:enabledfalse android:srcdrawable/home / /LinearLayout -110,6 112,9 android:layout_heightwrap_content android:layout_weight1 android:clickablefalse android:enabledfalse android:textPTT / Button -118,6 123,8 android:layout_heightwrap_content android:layout_weight1 android:clickablefalse android:enabledfalse android:textSOS / ImageButton android:idid/back_button -125,6 132,7 android:layout_heightwrap_content android:layout_weight1 android:clickablefalse android:enabledfalse android:gravitycenter android:srcdrawable/back android:visibilityvisible / -134,6 142,7 android:layout_weight1 android:layout_heightwrap_content android:clickablefalse android:enabledfalse android:gravitycenter android:textFn android:visibilityvisible / -150,6 159,9 android:layout_heightwrap_content android:layout_weight1 android:clickablefalse android:enabledfalse android:textVIDEO / Button -158,6 170,8 android:layout_heightwrap_content android:layout_weight1 android:clickablefalse android:enabledfalse android:textLIGHT / /LinearLayout -181,6 195,9 android:layout_widthwrap_content android:layout_heightwrap_content android:clickablefalse android:focusablefalse android:enabledfalse android:focusableInTouchModefalse android:srcdrawable/up / LinearLayout -199,6 216,9 android:layout_widthwrap_content android:layout_heightwrap_content android:clickablefalse android:enabledfalse android:focusablefalse android:focusableInTouchModefalse android:srcdrawable/left / ImageButton -206,6 226,9 android:layout_widthwrap_content android:layout_heightwrap_content android:clickablefalse android:focusablefalse android:enabledfalse android:focusableInTouchModefalse android:srcdrawable/center / ImageButton -213,6 236,9 android:layout_widthwrap_content android:layout_heightwrap_content android:clickablefalse android:focusablefalse android:enabledfalse android:focusableInTouchModefalse android:srcdrawable/right / /LinearLayout -227,6 253,9 android:layout_widthwrap_content android:layout_heightwrap_content android:clickablefalse android:focusablefalse android:enabledfalse android:focusableInTouchModefalse android:srcdrawable/down / /LinearLayout /LinearLayout -249,6 278,7 android:layout_width180dip android:layout_heightwrap_content android:clickablefalse android:enabledfalse android:textstring/ai_key_test / /LinearLayout /LinearLayout diff --git a/src/com/sprd/validationtools/itemstest/audio/PhoneLoopBackTest.java b/src/com/sprd/validationtools/itemstest/audio/PhoneLoopBackTest.java index d45d9b8..7b8696c 100644 --- a/src/com/sprd/validationtools/itemstest/audio/PhoneLoopBackTest.java b/src/com/sprd/validationtools/itemstest/audio/PhoneLoopBackTest.java -83,17 83,21 public class PhoneLoopBackTest extends BaseActivity { mRadioSpeaker.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Log.d(TAG, mRadioSpeaker click---); switchLoopback(LOOPBACK_SPEAKER); } }); mRadioReceiver.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Log.d(TAG, mRadioReceiver click---); switchLoopback(LOOPBACK_RECEIVER); } }); mRadioEarpiece.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Log.d(TAG, mRadioEarpiece click---); switchLoopback(LOOPBACK_MIC_EARPIECE); } }); diff --git a/src/com/sprd/validationtools/itemstest/keypad/KeyTestActivity.java b/src/com/sprd/validationtools/itemstest/keypad/KeyTestActivity.java index 0139c4e..06f5bd1 100644 --- a/src/com/sprd/validationtools/itemstest/keypad/KeyTestActivity.java b/src/com/sprd/validationtools/itemstest/keypad/KeyTestActivity.java -19,6 19,7 import android.widget.Button; import android.widget.GridLayout; import android.widget.ImageButton; import android.widget.Toast; import android.view.WindowManager; import com.sprd.validationtools.BaseActivity; import com.sprd.validationtools.Const; -118,13 119,20 public class KeyTestActivity extends BaseActivity { setContentView(R.layout.key_test); setTitle(R.string.key_test); mHomeButton (ImageButton) findViewById(R.id.home_button); mHomeButton.setEnabled(false); // mMenuButton (ImageButton) findViewById(R.id.menu_button); mCallButton (Button) findViewById(R.id.call_button); mVolumeUpButton (ImageButton) findViewById(R.id.volume_up_button); mVolumeDownButton (ImageButton) findViewById(R.id.volume_down_button); mCameraButton (ImageButton) findViewById(R.id.camera_button); mVolumeUpButton.setEnabled(false); mVolumeDownButton.setEnabled(false); mCameraButton.setEnabled(false); mPowerButton (ImageButton) findViewById(R.id.power_button); mPowerButton.setEnabled(false); mPTTButton (Button)findViewById(R.id.ptt_button); mSOSButton (Button)findViewById(R.id.sos_button); -154,10 162,9 public class KeyTestActivity extends BaseActivity { mVideoButton.setVisibility(View.GONE); mCallButton.setVisibility(View.GONE); - findViewById(R.id.focus_button).requestFocus(); - mFnButton (Button)findViewById(R.id.fn_button); mMenuButton (ImageButton)findViewById(R.id.menu_button); mMenuButton.setEnabled(false); mUpButton (ImageButton)findViewById(R.id.up_button); mDownButton (ImageButton)findViewById(R.id.down_button); -165,7 172,14 public class KeyTestActivity extends BaseActivity { mRightButton (ImageButton)findViewById(R.id.right_button); mCenterButton (ImageButton)findViewById(R.id.center_button); mBackButton (ImageButton)findViewById(R.id.back_button); - mUpButton.setEnabled(false); mDownButton.setEnabled(false); mLeftButton.setEnabled(false); mRightButton.setEnabled(false); mCenterButton.setEnabled(false); mBackButton.setEnabled(false); // mVolumeUpButton.requestFocus(); initSupport(); } } over
http://www.hkea.cn/news/14567436/

相关文章:

  • wordpress网站静态页面网站备案域名怎么买
  • 河南网站建设外贸关键词的优化方案
  • 网站收录多少才有排名何苦做游戏网站
  • 小程序开发平台需要网站吗中兴的网站谁做的
  • 哪儿网站建设费用低网站备案信息下载
  • 上海网站建设_永灿品牌建站网站建设立项
  • 湖北省建设厅造价官方网站辽宁建设厅的证到底在哪个网站查
  • 安徽安能建设集团网站html前端网站开发PPT
  • 快捷网站建设wordpress图片分组
  • 长安网站建设好吗古风网站建设
  • 帝国cms怎样做网站迁移网站建设优化公司
  • 做外贸网站推广的步骤上海网站建设q479185700強
  • 网站开发需求文档模板网页空间是什么意思
  • 网站的展现形式公司制作官网
  • 网址注册在哪里注册百度网站优化 件
  • 广州专业网站制作apt安装wordpress
  • 网站域名格式网站为契机建设校园数字化
  • 网站优化seo方案wordpress 珠宝主题
  • 做汽车养护的网站上海徐汇龙华公司鞋子
  • 网站建设 印花税合肥公司注册平台
  • 国外免费搭建网站源码做商城网站要什么手续
  • 家具展示型网站广州百度
  • 长沙品牌网站建设网站短链接生成
  • 新开神途手游发布网站长春网站制作机构
  • 徐州市城乡建设局网站6长沙 网站建设品牌推荐
  • 网站服务器重做系统怎么做网站建设品牌推广seo
  • 手机企业网站设计wordpress Dux1.5下载
  • 叙述一个网站的建设过程网站建设客户分析调查表文档
  • 休闲食品网站建设暴雪要倒闭了
  • 网站关键词下降廊坊百度快速排名