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

公司做网站怎么做建筑工地平台

公司做网站怎么做,建筑工地平台,成都网站建设兼职,品牌设计公司排名广州设计最近处理一个问题#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.w-s-a.com/news/174081/

相关文章:

  • 做官网网站哪家公司好jianux wordpress
  • 插件素材网站新站seo优化快速上排名
  • 网站注销主体填写原因asp响应式h5网站源码下载
  • 电商类网站模板下载济南市建设网官网
  • 万户网络做网站如何采集器wordpress
  • 襄阳网站建设企业查看 wordpress 插件
  • 网站地址申请京东联盟怎么做网站
  • 三亚市城乡建设局网站网站口碑营销
  • 图书租借网站 开发企业网站搜索优化外
  • 新乡个人网站建设哪家好免费的图片做视频在线观看网站
  • 洛阳工程建设信息网站山西响应式网页建设哪里好
  • 企业网站建设市场的另一面wordpress分类插件
  • 网站建设名头公司展厅装修
  • 小型购物网站开发费用郑州企业网站模板建站
  • 个体商户建自己的网站做销售建设积分兑换官方网站
  • 网站建设与维护培训网页制作专业用语
  • 建站特别慢wordpress网页制作与设计项目策划书
  • 视频制作素材免费网站头像制作在线生成器
  • 网站建设是不是可以免费建站广州做网站 信科网络
  • 闸北区网站设计叫别人做网站后怎么更改密码
  • 为什么想做网站运营建设工程教育网站
  • 站长基地百度推广整体优化网站
  • 门窗 东莞网站建设wordpress外链论坛
  • 安徽省建设部网站官网还能用的wap网站
  • 企业网站设计开发网站关键词优化seo
  • 郑州高档网站建设台州网站建设推广
  • 广东省建设信息港网站WordPress手机缩略图设置
  • 优秀网站主题平顶山专业做网站公司
  • wordpress返回顶部插件wordpress站群seo
  • 企业网站建设报价表百度竞价托管哪家好