HTML5 经量级框架 jQuery Mobile 视图与页面 - 7.2
来源:互联网 发布:mac usb电压不足 编辑:程序博客网 时间:2024/06/06 07:11
xml:
<?xml version="1.0" encoding="UTF-8"?>
<AbsoluteLayout android:orientation="vertical" android:id="@+id/tab1" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<WebView android:id="@+id/wv"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_x="0.0dip"
android:layout_y="0.0dip"
android:layout_weight="1.0" />
</AbsoluteLayout>
java:
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
WebView wView = (WebView)findViewById(R.id.wv);
WebSettings wSet = wView.getSettings();
wSet.setJavaScriptEnabled(true);
wView.loadUrl("file:///android_asset/www/index.html");
//wView.loadUrl("content://com.android.htmlfileprovider/sdcard/index.html");
// wView.loadUrl("http://www.baidu.com");
}
}
html:
<!DOCTYPE HTML><html>
<head>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>PhoneGap</title>
<link rel="stylesheet" href="jquery.mobile-1.3.1.css">
<script type="text/javascript" charset="utf-8" src="jquery-1.9.0.min.js"></script>
<script type="text/javascript" charset="utf-8" src="jquery.mobile-1.3.1.js"></script>
</head>
<body>
<section data-role="page">
<header data-role="header">页头</header>
<article data-role="content">内容</article>
<footer data-role="footer">页脚</footer>
</section>
</body>
</html>
- HTML5 经量级框架 jQuery Mobile 视图与页面 - 7.2
- HTML5 经量级框架 jQuery Mobile (多视图页面 ,视图切换动画,dialog 对话框,页面主题) - 7.3
- HTML5 经量级框架 jQuery Mobile - 7.1
- HTML5 经量级框架 jQuery Mobile Form 表单 - 7.7
- HTML5 经量级框架 jQuery Mobile List 列表 - 7.8
- HTML5 经量级框架 jQuery Mobile 内容格式布局,折叠块内容 - 7.6
- HTML5 经量级框架 jQuery Mobile (配置选项,Enent 事件,主题系统) - 7.9
- HTML5 经量级框架 jQuery Mobile (Button,Icon,分组功能button,具有内联样式的button) - 7.4
- HTML5 经量级框架 jQuery Mobile Bar(后退,多按钮,controlgroup,horizontal,导航条定义fixed,全屏模式) - 7.5
- 使用 jQuery Mobile 与 HTML5 开发 Web App —— 09 jQuery Mobile 页面与对话框
- 使用 jQuery Mobile 与 HTML5 开发 Web App —— 12 jQuery Mobile 页面事件与 deferred
- 使用 jQuery Mobile 与 HTML5 开发 Web App(十二) —— jQuery Mobile 页面事件与 deferred
- 使用 jQuery Mobile 与 HTML5 开发 Web App(九) —— jQuery Mobile 页面与对话框
- HTML5 前端框架 jQuery Mobile 使用教程
- HTML5与JQuery.Mobile(一)
- HTML5与JQuery.Mobile(二)
- HTML5与JQuery.Mobile(三)
- HTML5与JQuery.Mobile(四)
- poj_1321_棋盘问题(DFS)
- vba word 下载网络上的文件
- 计算机专业推荐书籍
- CodeForces 298B Sail
- 转载_spi子系统分析
- HTML5 经量级框架 jQuery Mobile 视图与页面 - 7.2
- 淘宝核心系统团队博客
- ios开发之导航栏的小例子
- poj 2236 wireless network
- CodeForces 300A Array
- 简单的javascript表单验证,输入是否为空,确认密码。。
- 如何高效的学习
- ASP.NET中WCF框架应用程序建立以及框架概念理解
- 程序员的成长之路