-
10 Mar 2011 5:49 PM #11
Worked for me too! Thanks for chiming in.
-
1 Jun 2011 1:37 AM #12
I avoid this bug with PhoeGap and using Android Native API
I avoid this bug with PhoeGap and using Android Native API
if using Android 2.1 + Sencha Touch.
behavior of Input field become strange.
When I focus into field and scroll the panel, field is duplicate and show strange position.
It is a Android WebView's bug.
When inputing a HTML input field on Android, Android create other Native input field on it.
And the Native input field cause these strange behavior.
The Native input field is Android "WebTextView".
http://www.androidjavadoc.com/2.3/an...bTextView.html
I trid to resolve this bug only javascript code, but it is impossible.
The Native input field could not remove by JS.
So, I use phonegap and Android Native API.
Use phonegap.js to call native Method.
Code:=== JavaScipt Code === //Calling Native method usgin PhoneGap mywebview.removeAllViewsInLayout();
Using DroidGap to call Native API from JS.
Code:=== Java Code === === MAIN CLASS === public class App extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); final MyWebView myWebView = new MyWebView(appView, this); appView.addJavascriptInterface(myWebView, "mywebview"); super.loadUrl("file:///android_asset/www/index.html"); } } === MAIN CLASS === Add a method call removeAllViewsInLayout() inside your WebView class. === MyWebView CLASS === public class MyWebView extends Activity { public WebView webView; public DroidGap droidGap; public MyWebView(WebView webView, DroidGap droidGap) { this.webView = webView; this.droidGap = droidGap; } /** * Remove All ChildView on WebView * */ public synchronized void removeAllViewsInLayout() { try { Runnable runnable = new Runnable() { public void run() { webView.removeAllViewsInLayout(); }; }; droidGap.runOnUiThread(runnable); } catch (Exception e) { e.printStackTrace(); } } } === MyWebView CLASS ===
Here is my Blog post about this but in Japanese.
http://extjs.blog.sus4.co.jp/2011/06...form-behavior/
-
7 Jun 2011 11:26 PM #13
Hi All,
I am new to Sencha development
I am also facing the same issue with the password field. I tried using form.disable(), But the other fields in the form gets disabled when i clicked Login button except "Password Field". This Sticky password field is carried over to other pages. I also tried blurring the password field and switching over the focus to username field when button is clicked, but nothing works perfectly. Can anyone,throw more light on this issue. Is there any other work around I can proceed with..?
Thanks in advance.
-
26 Jul 2011 6:39 AM #14
Can you explain where I must put the above code? thanks a lot...Code:=== JavaScipt Code === //Calling Native method usgin PhoneGap mywebview.removeAllViewsInLayout();
-
18 Jan 2012 6:02 PM #15
Fix
Fix
I had this exact problem, here's how to fix it:
You need to blur the password field as stated earlier, do that by focusing on a "normal" text field. Then remove focus from the text field.
It seems you can't simply do:
But it does work when each call is in a setTimeout().Code:Ext.getCmp('login_username').focus().blur();
So here's the code that removes the focus from a password field every time:
Hope this helps!Code:setTimeout(function() { Ext.getCmp('login_username').focus(); setTimeout(function() { Ext.getCmp('login_username').blur(); },0); },0);
-
12 Feb 2012 9:20 PM #16
Calling Native code from PhoneGap.js
Calling Native code from PhoneGap.js
Hi,
Could you manage to implement this?
I still could not figure out how to call this from Phonegap.js
Would you be able to help. Thanks in advance
-
6 Mar 2012 8:29 AM #17
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[OPEN-432] input field in Ext.List leading to unexpected behaviour (Android)
By mherger in forum Sencha Touch 1.x: BugsReplies: 5Last Post: 27 Jul 2012, 1:22 PM -
[OPEN-536] Android 1.0RC1: Ext.form.Search in toolbar field shown twice while focused
By mrsunshine in forum Sencha Touch 1.x: BugsReplies: 5Last Post: 2 Mar 2011, 1:08 PM -
[FIXED-479] .98 - Strange characters in Password field on Android
By suzzer99 in forum Sencha Touch 1.x: BugsReplies: 5Last Post: 6 Nov 2010, 3:19 AM -
password field is not defined in CSS (x-form-password)
By vtswingkid in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 9 Mar 2007, 5:59 PM


Reply With Quote