Tag: android

document.location.href = ‘#位置’; 与$ .mobile.changePage(’#position’);

这两个重新划分有什么区别? 我有一个应用程序,当我使用时,它在chrome和android 4上正常工作,但不在android 2.xx上 document.location.href=’#location’; 但是当我使用时 $.mobile.changePage(‘#location’); 它在chrome和android中都无法正常工作。 Redirrection似乎发生了,但之后立即跳转到我的应用程序的索引页面。

禁用移动设备的HTML拼写帮助

有没有办法在BlackBerry 6 / Iphone / android的HTML输入字段中禁用拼写帮助? 我试过设置 autocomplete =“off”autocapitalize =“false”autocorrect =“false”spellcheck =“false” “但不幸的是,这样做似乎并没有禁用自动完成function。 我正在尝试这样做,因为我想使用自定义自动填充程序,但BlackBerry自动填充程序不断阻碍。 谢谢 凯文 任何想法都会很棒

jquery-mobile加载到android WebView中

我无法将jquerymobile装饰的网页加载到Android WebView中。 考虑jquery移动演示站点: http : //jquerymobile.com/demos/1.0a4.1/ final WebView browser; browser = (WebView) findViewById(R.id.browser_webview); final WebSettings settings = browser.getSettings(); settings.setJavaScriptEnabled(true); settings.setAllowFileAccess(true); settings.setBuiltInZoomControls(false); settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN); browser.loadUrl(“http://jquerymobile.com/demos/1.0a4.1/); 部署到Android设备(nexus one)这只是崩溃。 部署到模拟器日志报告 INFO/HttpClientHelper(349): dispatch to ‘http://jquerymobile.com/demos/1.0a4.1/’ INFO/ActivityManager(51): Displayed activity com.xxx.android/.presentation.activities.SomeActivity: 4194 ms (total 4194 ms) DEBUG/dalvikvm(349): GC freed 3005 objects / 220168 bytes in 76ms *** *** *** *** *** *** […]

IScroll包装器没有达到高度

我有以下代码: Picture 我的CSS类 .homebutton_zeile{ width: 100%; height: 30%; } .homebutton_all{ width: 30%; height: 90%; float:left; margin-left: 2%; margin-top:15px; } .homebutton_picture{ position: relative; width: 100%; height: 85%; float: left; background-color: #AAC7BD; border: 1px solid black; border-radius: 15px; box-shadow:8px 8px 8px #666; } .homebutton_name{ text-align:center; position: relative; top:-10px; width: 100%; height: 15%; margin-left: auto; text-decoration:none; color:black; } […]

使用jquery可以看到查找键盘

嗨,我开发了android phonegap应用程序,它是响应。所以当键盘可见时,我需要隐藏页脚和横向模式和键盘是不可见的我需要在模式中显示页脚。我已经尝试过样本但它的不正常工作。如果我以纵向模式打开应用程序,当键盘不可见时,我无法在横向模式下找到页脚。 这是我的示例代码: var is_keyboard = false; var is_landscape = false; var initial_screen_size = window.innerHeight; /* Android */ window.addEventListener(“resize”, function() { is_keyboard = (window.innerHeight < initial_screen_size); is_landscape = (screen.height < screen.width); if (is_keyboard) { $("#footer1").hide(); } else { $("#footer1").show(); } }, false); 请指导我。谢谢。

如何使谷歌地图像Android手机中的谷歌地图应用程序一样工作

正如您在图片中看到的那样,我在屏幕左下角有放大缩小按钮。 我想让它移动一点点或者可能添加一些新的css以便它更容易使用。 有人可以帮我解决这个问题吗? 感谢和问候 .JS /* * Google Maps documentation: http://code.google.com/apis/maps/documentation/javascript/basics.html * Geolocation documentation: http://dev.w3.org/geo/api/spec-source.html */ $( document ).on( “pageshow”, “#map-page”, function() { var defaultLatLng = new google.maps.LatLng(”,”); drawMap(defaultLatLng); // Default to Hollywood, CA when no geolocation support //var latlng = marker.getPosition(); function drawMap(latlng) { var myOptions = { zoom: 10, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP […]

E / Web控制台(8272):未捕获的ReferenceError:未定义functionName:1在View Pager中加载webviews时

我正在尝试在视图寻呼机中加载webviews。 public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = null; v = inflater.inflate(R.layout.webview_layout, container, false); myWebView = (WebView)v.findViewById(R.id.webview1); WebSettings webSettings = myWebView.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setAppCacheEnabled(true); webSettings.setCacheMode(WebSettings.LOAD_CACHE_ELSE_NETWORK); myWebView.loadUrl(“file:///android_asset/web/index.html”); myWebView.setWebViewClient(new WebViewClient() { @Override public void onPageFinished(WebView view, String url) { myWebView.loadUrl(“javascript:testFunction()”); } } } 加载页面后,在onPageFinished()调用javascript函数在以正常速度滚动时,网页正在加载并执行javascript。 但是在高速滚动时会发生以下exception。 > 09-06 14:29:06.750: E/Web Console(8272): Uncaught ReferenceError: > […]

你可以在Android上使用AJAX调用吗?

我是一名C#网络开发人员。 而且每天我都很习惯使用jQuery并对数据进行AJAX调用(我喜欢)。 但是,我是Android的完整NOOB 。 我目前的阅读显示Android使用REST’ful服务进行数据交换。 所以我的问题是…… Android可以使用jQuery mobile吗? 你能在Android中进行正常的AJAX调用吗? 您是否只能在Android中进行REST’ful呼叫?

backbutton确认退出app android + phonegap + jquery

如何在Phonegap在线系统中使用jQuery Mobile处理Android中的物理后退按钮? 我想显示确认退出应用程序(是 – 否)。 我尝试了很多方法但没有任何工作。

使用Jquery Mobile进行XML解析

我有以下格式的XML。 我想提取’title’和’submenu’标签并从中创建一个菜单栏结构,如下图所示。 Products Articulated1 Arti1 Culated1 BackHoles1 Back1 Holes1 Services VolvoParts2 Volvo2 Parts2 PartsOnline2 Parts2 Online2 请建议我怎么做。 谢谢..