2013-10-23 2 views
0

내 응용 프로그램에서 텍스트 필드를 클릭하면 키보드가 표시되고 다음 텍스트 필드에는 버튼이 있습니다. 버튼을 누르면 동작 시트가 표시되지만 키보드는 숨기지 않습니다. 조치 시트가 뒤에 표시됩니다. actionsheet키보드 숨기기가 작동하지 않음

if (bval == "productpic") { 
       if (!this.actions) { 
        this.actions = Ext.Viewport.add({ 
         xtype: 'actionsheet', 
         style: 'background:#f3f3f3;', 
         items: [{ 
          xtype: 'button', 
          ui: 'normal', 
          text: 'Take Photo', 
          scope: this, 
          handler: function() { 
           this.actions.hide(); 
           capturePhoto(); 
          } 
         }, { 
          xtype: 'button', 
          ui: 'normal', 
          text: 'Choose Existing Photo', 
          scope: this, 
          handler: function() { 
           this.actions.hide(); 
           getPhoto(pictureSource.PHOTOLIBRARY); 
          } 
         }, { 
          xtype: 'button', 
          ui: 'decline', 
          text: 'Cancel', 
          scope: this, 
          handler: function() { 
           this.actions.hide(); 
          } 
         }] 
        }); 
       } 

매니페스트 세부 사항

android:hardwareAccelerated="true" 
android:versionCode="1" 
android:versionName="1.0" 
android:windowSoftInputMode="stateAlwaysHidden" > 

의 키보드 여기

코드가 폰갭에 버튼 탭의 키 보드를 숨기는 방법을 기반으로 ndroid applciation?를 온 클릭() 이벤트에서

답변

0

을 좀 도와주세요

을 넣어

myEditText 키보드를 일으키는 원인이되는 텍스트 필드가 보여주는 것입니다 InputMethodManager imm = (InputMethodManager)getSystemService( Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(myEditText.getWindowToken(), 0);

Source

+0

그 네이티브 기반 application.its 자바 스크립트를 사용하지 않습니다 – ioseve

관련 문제