PDA

View Full Version : textfield keyboard bug in android



perry_jia
15 Apr 2011, 7:43 AM
Platform: Android2.1, Sencha Touch1.1
Description:
I wrote an Ext.Panel in my android mobile which layout is "card" , and there is a "textarea" in the first card, then i wrote some words in it,
then panel.setActiveItem(secondCard, 'slide'), the secondCard is an object of Ext.List, and then i tap the secondCard, the soft keyboard pop up(It should not pop up.).




Ext.ns('view');
view.MyCard = Ext.extend(Ext.Panel, {
layout : 'card',
fullscreen : true,
scroll : 'vertical',
initComponent : function() {
this.items = [{
xtype : 'form',
items : [{
xtype : 'fieldset',
title : 'Personal Info',
items : [{
xtype : 'textareafield',
name : 'bio',
placeHolder : 'Write some words here',
maxLength : 60,
maxRows : 10
}, {
xtype: 'button',
text: 'Submit',
handler : this.onSubmit,
scope: this
}]
}]
}];
view.MyCard.superclass.initComponent.call(this);
},

onSubmit: function() {
/**SecondCard is an Object of Ext.List,
* when you tap(click) the list (no input ,just a list),
* the soft keyboard pops up.
**/
var secondCard = new view.SecondCard();
this.setActiveItem(secondCard, 'slide');
}
});

Ext.setup({
onReady: function() {
new view.MyCard();
}
});


I tried many method, for example


onSubmit: function() {
var secondCard = new view.SecondCard();
this.setActiveItem(secondCard, 'slide');
this.destroy();
}

but when tap the secondCard, the soft keyboard still pop up.

It's the Android's bug or sencha touch's bug?

perry_jia
17 Apr 2011, 8:08 PM
Nobody met this question? I'm from China, is that i didn't describe the question clearly?
I have been tried to solve the problem for half a month, still couldn't find the way.
Help!

tryanDLS
18 Apr 2011, 8:20 AM
Please don't repost the same thing in another forum - duplicate post deleted.

atluriajith
10 Jul 2012, 12:47 AM
http://stackoverflow.com/questions/8878450/hide-keyboard-when-tap-on-ext-form-select

C (http://stackoverflow.com/questions/8878450/hide-keyboard-when-tap-on-ext-form-select)heck this once.. this may help you.

adrees1221
22 Jul 2012, 5:36 AM
Watch The Dark Knight Rises Online In case you missed it, last night a flurry of recent pictures and photographs from The Dark Knight Rises created their means on-line, because the film shifts from its secretive early promoting section to the full-on blitz to create positive everybody is aware of it is the next must-see movie of the summer (if you are reading this, odds are you knew that already anyway). currently with reports from the set last summer hitting the online, there is a lot of to feature to the pile: at Movies.com, they have four banners for the movie that take pictures we’ve already seen them into the film and translate them into extremely stirring posters. look at 2 of them below and click on.

Watch The Dark Knight Rises Online (https://sites.google.com/site/onlinethedarkknightrises/) | Watch Online The Dark Knight Rises (http://coplop.com/watch-online-the-dark-knight-rises/)