0

私のアプリケーションでは、キーボードが表示されているテキストフィールドをクリックすると、テキストフィールドの隣にボタンがあります.ボタンをタップするとアクションシートが表示されますが、キーボードは隠れていません.アクションシートはキーボードの後ろに表示されます

アクションシートのコードはこちら

   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" >

phonegapベースのAndroidアプリケーションでボタンタップでキーボードを非表示にする方法は?助けてください

4

1 に答える 1