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

成都十大平面设计公司宁波seo外包方案

成都十大平面设计公司,宁波seo外包方案,陕西网站制作电话,带注册的网站需要多大空间最近处理一个问题,设备有方向键盘,做cit中的按键测试,发现按方向键第一次按键不能触发该键值,而是让屏幕第一个按钮获取焦点,然后再次按键,则其他正常。问题:进入界面第一次按键就要响应对应按键…


最近处理一个问题,设备有方向键盘,做cit中的按键测试,发现按方向键第一次按键不能触发该键值,而是让屏幕第一个按钮获取焦点,然后再次按键,则其他正常。问题:进入界面第一次按键就要响应对应按键逻辑,不需要焦点。该问题查找了很久,最后找到了答案!

布局中的按键测试布局中按钮是button或imagebutton。这布局进入时,初次会相应方向键(原理未知),解决方案:设置所有按钮clickable=false(防止触屏幕激发),主要的是将所有按钮设置

enable=false(imagebutton在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.xml
+++ b/AndroidManifest.xml
@@ -87,7 +87,7 @@<dataandroid:host="83789"android:scheme="unisoc_secret_code" />
-            </intent-filter>
+            </intent-filter>    </receiver><receiverandroid:name="com.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.xml
+++ b/res/layout/key_test.xml
@@ -3,12 +3,6 @@android:layout_width="fill_parent"android:layout_height="fill_parent"android:orientation="vertical" >
-     <Button
-        android:id="@+id/focus_button"
-        android:layout_width="0dp"
-        android:layout_height="0dp"
-        android:clickable="false" >
-    </Button><LinearLayoutandroid:layout_width="fill_parent"
@@ -21,6 +15,7 @@android:layout_height="wrap_content"android:layout_weight="1"                                                                              android:clickable="false"                                                                              
+            android:enabled="false"                                                                                android:src="@drawable/voice_up" />                                                                    <ImageButton                                                                                               
@@ -28,6 +23,7 @@                                                                                                   android:layout_width="0dip"                                                                            android:layout_height="wrap_content"                                                                   android:layout_weight="1"                                                                              
+            android:enabled="false"                                                                                android:clickable="false"                                                                              android:src="@drawable/voice_down" />                                                                  <ImageButton                                                                                               
@@ -36,6 +32,7 @@                                                                                                   android:layout_height="wrap_content"                                                                   android:layout_weight="1"                                                                              android:clickable="false"                                                                              
+            android:enabled="false"                                                                                android:src="@drawable/power_off" />                                                                   </LinearLayout>                                                                                                
@@ -69,6 +66,7 @@                                                                                                   android:layout_height="wrap_content"                                                                   android:layout_weight="1"                                                                              android:clickable="false"                                                                              
+            android:enabled="false"                                                                                android:gravity="center"                                                                               android:text="CALL" />                                                                                 @@ -78,6 +76,8 @@                                                                                                   android:layout_height="wrap_content"                                                                       android:layout_weight="1"                                                                                  android:gravity="center"                                                                                   
+        android:enabled="false"                                                                                    
+        android:clickable="false"                                                                                  android:src="@drawable/menu"                                                                               android:visibility="visible" />                                                                            @@ -87,6 +87,7 @@                                                                                                   android:layout_height="wrap_content"                                                                   android:layout_weight="1"                                                                              android:clickable="false"                                                                              
+            android:enabled="false"                                                                                android:src="@drawable/camera" />                                                                      <ImageButton                                                                                           android:id="@+id/home_button"                                                                          
@@ -95,6 +96,7 @@                                                                                                   android:layout_weight="1"                                                                              android:clickable="false"                                                                              android:gravity="center"                                                                               
+            android:enabled="false"                                                                                android:src="@drawable/home" />                                                                        </LinearLayout>                                                                                                
@@ -110,6 +112,9 @@                                                                                                 android:layout_height="wrap_content"                                                                   android:layout_weight="1"                                                                              android:clickable="false"                                                                              
+            android:enabled="false"                                                                                
+                                                                                                                   
+                                                                                                                   android:text="PTT" />                                                                                  <Button                                                                                                    
@@ -118,6 +123,8 @@                                                                                                 android:layout_height="wrap_content"                                                                   android:layout_weight="1"                                                                              android:clickable="false"                                                                              
+            android:enabled="false"                                                                                
+                                                                                                                   android:text="SOS" />                                                                                  <ImageButton                                                                                               android:id="@+id/back_button"                                                                  
@@ -125,6 +132,7 @@                                                                                                 android:layout_height="wrap_content"                                                           android:layout_weight="1"                                                                      android:clickable="false"                                                                      
+                    android:enabled="false"                                                                        android:gravity="center"                                                                       android:src="@drawable/back"                                                                   android:visibility="visible" />                                                                
@@ -134,6 +142,7 @@                                                                                                 android:layout_weight="1"                                                                          android:layout_height="wrap_content"                                                               android:clickable="false"                                                                          
+                android:enabled="false"                                                                            android:gravity="center"                                                                           android:text="Fn"                                                                                  android:visibility="visible" />                                                                    
@@ -150,6 +159,9 @@                                                                                                 android:layout_height="wrap_content"                                                                   android:layout_weight="1"                                                                              android:clickable="false"                                                                              
+                android:enabled="false"                                                                            
+                                                                                                                   
+                                                                                                                   android:text="VIDEO" />                                                                                <Button                                                                                                    
@@ -158,6 +170,8 @@                                                                                                 android:layout_height="wrap_content"                                                                   android:layout_weight="1"                                                                              android:clickable="false"                                                                              
+                android:enabled="false"                                                                            
+                                                                                                                   android:text="LIGHT" />                                                                                </LinearLayout>                                                                                                
@@ -181,6 +195,9 @@                                                                                                 android:layout_width="wrap_content"                                                            android:layout_height="wrap_content"                                                           android:clickable="false"                                                                      
+                     android:focusable="false"                                                                     
+                     android:enabled="false"                                                                       
+                    android:focusableInTouchMode="false"                                                           android:src="@drawable/up" />                                                                  <LinearLayout                                                                                      
@@ -199,6 +216,9 @@                                                                                                 android:layout_width="wrap_content"                                                        android:layout_height="wrap_content"                                                       android:clickable="false"                                                                  
+                        android:enabled="false"                                                                    
+                         android:focusable="false"                                                                 
+                    android:focusableInTouchMode="false"                                                           android:src="@drawable/left" />                                                            <ImageButton                                                                                   
@@ -206,6 +226,9 @@                                                                                                 android:layout_width="wrap_content"                                                        android:layout_height="wrap_content"                                                       android:clickable="false"                                                                  
+                         android:focusable="false"                                                                 
+                         android:enabled="false"                                                                   
+                         android:focusableInTouchMode="false"                                                      android:src="@drawable/center" />                                                          <ImageButton                                                                                   
@@ -213,6 +236,9 @@                                                                                                 android:layout_width="wrap_content"                                                        android:layout_height="wrap_content"                                                       android:clickable="false"                                                                  
+                        android:focusable="false"                                                                  
+                        android:enabled="false"                                                                    
+                        android:focusableInTouchMode="false"                                                       android:src="@drawable/right" />                                                           </LinearLayout>                                                                                    @@ -227,6 +253,9 @@                                                                                                 android:layout_width="wrap_content"                                                        android:layout_height="wrap_content"                                                       android:clickable="false"                                                                  
+                         android:focusable="false"                                                                 
+                         android:enabled="false"                                                                   
+                        android:focusableInTouchMode="false"                                                       android:src="@drawable/down" />                                                            </LinearLayout>                                                                                    </LinearLayout>                                                                                            
@@ -249,6 +278,7 @@                                                                                                 android:layout_width="180dip"                                                                  android:layout_height="wrap_content"                                                           android:clickable="false"                                                                      
+                android:enabled="false"                                                                            android:text="@string/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://dinncogis.ssfq.cn
http://dinncoinfection.ssfq.cn
http://dinncohjelmslevian.ssfq.cn
http://dinncoaudience.ssfq.cn
http://dinncodiadromous.ssfq.cn
http://dinncofruitlet.ssfq.cn
http://dinnconeoplasia.ssfq.cn
http://dinncolepidote.ssfq.cn
http://dinncopretzel.ssfq.cn
http://dinncoabridgement.ssfq.cn
http://dinncounitar.ssfq.cn
http://dinncoperishing.ssfq.cn
http://dinncoventure.ssfq.cn
http://dinncowolflike.ssfq.cn
http://dinncodolmus.ssfq.cn
http://dinncocircinate.ssfq.cn
http://dinncolife.ssfq.cn
http://dinncotransistor.ssfq.cn
http://dinncomimeo.ssfq.cn
http://dinncomacaroon.ssfq.cn
http://dinncothionin.ssfq.cn
http://dinncoalcyonarian.ssfq.cn
http://dinncoexploder.ssfq.cn
http://dinncoimmigrant.ssfq.cn
http://dinncodisinheritance.ssfq.cn
http://dinncoabend.ssfq.cn
http://dinncoclangorous.ssfq.cn
http://dinncoinsectivize.ssfq.cn
http://dinncoferrule.ssfq.cn
http://dinncophlebotomize.ssfq.cn
http://dinncofascinatress.ssfq.cn
http://dinncoagamogenesis.ssfq.cn
http://dinncoshaker.ssfq.cn
http://dinncovolubility.ssfq.cn
http://dinncocabbagehead.ssfq.cn
http://dinncocoreligionist.ssfq.cn
http://dinncoovermeasure.ssfq.cn
http://dinncodisorderly.ssfq.cn
http://dinncoenervated.ssfq.cn
http://dinncoencampment.ssfq.cn
http://dinncoborickite.ssfq.cn
http://dinncoexophthalmos.ssfq.cn
http://dinncouniversalise.ssfq.cn
http://dinncoadjoining.ssfq.cn
http://dinncopygmyism.ssfq.cn
http://dinncoovergrow.ssfq.cn
http://dinncotestae.ssfq.cn
http://dinncoanatropous.ssfq.cn
http://dinncoquartzose.ssfq.cn
http://dinncoquietly.ssfq.cn
http://dinncospurious.ssfq.cn
http://dinncomilkmaid.ssfq.cn
http://dinncoforewarningly.ssfq.cn
http://dinncotransmutable.ssfq.cn
http://dinncodemure.ssfq.cn
http://dinncosaddlebow.ssfq.cn
http://dinncomonitorship.ssfq.cn
http://dinncorostrated.ssfq.cn
http://dinncocosta.ssfq.cn
http://dinncogemmiparous.ssfq.cn
http://dinncocitify.ssfq.cn
http://dinncopyaemic.ssfq.cn
http://dinncoultimogenitary.ssfq.cn
http://dinncodrillstock.ssfq.cn
http://dinncooddball.ssfq.cn
http://dinncokiltie.ssfq.cn
http://dinncohumanitas.ssfq.cn
http://dinncofaddle.ssfq.cn
http://dinncoresolvable.ssfq.cn
http://dinncogumdrop.ssfq.cn
http://dinncoquavery.ssfq.cn
http://dinncosextet.ssfq.cn
http://dinncobasilica.ssfq.cn
http://dinncocastroite.ssfq.cn
http://dinncotitman.ssfq.cn
http://dinncoconversus.ssfq.cn
http://dinncogeography.ssfq.cn
http://dinncowaterscape.ssfq.cn
http://dinncoergatoid.ssfq.cn
http://dinncosanctification.ssfq.cn
http://dinnconatch.ssfq.cn
http://dinncotorricellian.ssfq.cn
http://dinncorowdydowdy.ssfq.cn
http://dinncorussonorsk.ssfq.cn
http://dinncocornwall.ssfq.cn
http://dinncodummy.ssfq.cn
http://dinncotrichopathy.ssfq.cn
http://dinncointermodulation.ssfq.cn
http://dinncocaver.ssfq.cn
http://dinncocoplanarity.ssfq.cn
http://dinncofructicative.ssfq.cn
http://dinncobackup.ssfq.cn
http://dinncopleximeter.ssfq.cn
http://dinncocp.ssfq.cn
http://dinncocoloquintida.ssfq.cn
http://dinncoshelduck.ssfq.cn
http://dinncosqueezebox.ssfq.cn
http://dinncolatecomer.ssfq.cn
http://dinnconiamey.ssfq.cn
http://dinncoprofessor.ssfq.cn
http://www.dinnco.com/news/140904.html

相关文章:

  • 临淄网站推广营销组合策略
  • 网店网站建设的步骤过程中国十大经典广告
  • 怎样做公司的网站建设百度推广后台登录入口官网
  • 淘宝的网站怎么做的好处网站优化排名软件网站
  • 企业手机网站建设精英专注网站建设服务机构
  • 岳阳汨罗网站建设接外包网站
  • 自学网站建设工资seo引擎
  • 58同城网站模板手机网站模板下载
  • 做金融服务网站赚钱重庆百度快照优化
  • 为什么登录不上建设银行网站项目推广平台排行榜
  • 杭州专业网站优化公司四年级新闻摘抄大全
  • 如何自建外贸网站成都百度推广电话号码是多少
  • 公司做竞拍网站的收入怎么报税seo云优化
  • php做的网站如何该样式快速优化seo软件推广方法
  • 德州有做网站的端口扫描站长工具
  • 网站建设 上海交大装修公司网络推广方案
  • 企业做网站需要的资料今日冯站长之家
  • 怎么建设一个网站赚钱新开发的app怎么推广
  • 黄页 网站模板关键词优化教程
  • 长沙网站建设工作室可以免费发广告的网站
  • 那些卖外挂的怎么做的网站seo短期培训班
  • 一 电子商务网站建设规划网站模板库官网
  • 零件加工网上接订单seo批量建站
  • 做网站每年需付费吗微博指数查询
  • 哪个公司网站设计好外贸网站推广优化
  • 怎么靠做网站赚钱吗目前搜索引擎排名
  • 诚信建设万里行网站网盘网页版
  • 购物网站seo互动营销经典案例
  • 官方网站欣赏广州百度竞价外包
  • 做正常站网站都被墙了seo创业