上一页 1 2 3 4 5 6 ··· 9 下一页
摘要: 最近想做一个程序,需要用到获取手机的地理位置,网上一搜一摞一摞的,但基本方法还是一样的。于是,找了一个比较工整的,看了下程序的逻辑,便直接用了。但是发现location每次都获取为null, 最后改完之后代码如下:1.AndroidManifest.xml 文件中加入以下许可:1 <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>2 <uses-permission android:name="androi 阅读全文
posted @ 2012-10-16 09:18 lihui_yy 阅读(12287) 评论(2) 推荐(0) 编辑
摘要: Java正则表达式的用途很广,之前要用到将一大 3M 的 txt 文本切分成多个小文本,用 C# 写的话很简洁,代码也就二十几行,今天用 Java 写了一下,果然,Java 很罗嗦。切分文件的代码就不贴了,主要贴一下怎么使用正则表达式将大字符串进行分组:比如,现在有一个 endlist.txt 文本文件,内容如下:1300102,北京市1300103,北京市1300104,北京市1300105,北京市1300106,北京市1300107,北京市1300108,北京市1300109,北京市1300110,北京市1300111,北京市1300112,北京市1300113,北京市1300114,北京 阅读全文
posted @ 2012-10-08 13:55 lihui_yy 阅读(16001) 评论(0) 推荐(0) 编辑
摘要: ExtJS自带表格组件中的行号,在删除某一行或某几行后,行号会变得不连续。因为源码中的函数如下:1 renderer: function(value, metaData, record, rowIdx, colIdx, store) {2 if (this.rowspan){3 metaData.cellAttr = 'rowspan="'+this.rowspan+'"';4 }5 6 metaData.tdCls = Ext.baseCSSPrefix + 'grid-cell-special';7 ... 阅读全文
posted @ 2012-09-27 15:12 lihui_yy 阅读(1881) 评论(0) 推荐(0) 编辑
摘要: 由于ExtJS版本不断更新,各种渲染方式也随之有所改变,目前大部分书籍还是停留在3版本,对于ExtJS4.1.1版本的表格渲染,设置表格行背景颜色的方式如下:首先,定义行的样式:1 .yellow-row .x-grid-cell{2 background-color:#FFFF00 !important;3 }4 .white-row .x-grid-cell{5 background-color:#FFFFFF !important;6 }7 .blue-row ... 阅读全文
posted @ 2012-09-26 17:14 lihui_yy 阅读(5395) 评论(0) 推荐(0) 编辑
摘要: xml文件内容如下:<EditText android:id="@+id/displayText" android:layout_width="fill_parent" android:layout_height="match_parent" android:singleLine="false" android:scrollbars="vertical" android:editable="false" android:textSize="12px" 阅读全文
posted @ 2012-09-19 15:21 lihui_yy 阅读(9534) 评论(0) 推荐(0) 编辑
摘要: 1.fieldset(checkbox) 获取值复选框组件定义如下: 1 { 2 xtype: 'fieldset', 3 title: '兴趣', 4 autoHeight: true, 5 defaultType: 'checkbox', 6 hideLabels: true, 7 id: 'xq', 8 layout: 'hbox', 9 ... 阅读全文
posted @ 2012-08-20 10:28 lihui_yy 阅读(20665) 评论(2) 推荐(1) 编辑
摘要: 1 { 2 xtype: 'fieldset', 3 id: 'job', 4 title: '职业', 5 autoHeight: true, 6 defaultType: 'radio', //设置fieldset内的默认元素为radio 7 //hideLabel: false, 8 layout: 'hbox', 9 defaul... 阅读全文
posted @ 2012-08-16 13:58 lihui_yy 阅读(20981) 评论(0) 推荐(1) 编辑
摘要: Ext.get( String/HTMLElement/Ext.Element el ) : Ext.dom.Element返回的是 Ext.dom.Element 对象。Ext.getCmp( String id)返回的是Ext.Component对象。也就是在js代码中定义的对象。例如,使用这两个方法:temp1 = Ext.getCmp("checkbox1");temp2 = Ext.get("checkbox1");则得到的结果如下: 阅读全文
posted @ 2012-08-14 20:47 lihui_yy 阅读(29511) 评论(0) 推荐(0) 编辑
摘要: 1.手工模式:progressbar.js: 1 Ext.onReady(function(){ 2 //手动 3 var config = { 4 text: '请稍后...', 5 width: '300', 6 renderTo: document.getElementById('progressbar'), 7 //cls: 'progress-bar' 8 }; 9 var pBar = new Ext.ProgressBar(config);10 var count = 0;11... 阅读全文
posted @ 2012-08-14 14:17 lihui_yy 阅读(1566) 评论(0) 推荐(0) 编辑
摘要: jQuery UI 库文件官方下载: http://jqueryui.com/download使用时,只需在工程中将 development-bundle 文件夹下的themes 文件夹添加到新建 css 文件夹下,并将 ui 文件夹导入到工程中。然后在 html 文件中,按下列顺序导入js文件:<script type="text/javascript" src="jquery-1.7.2.js"></script><script type="text/javascript" src="ui/ 阅读全文
posted @ 2012-08-08 21:04 lihui_yy 阅读(3774) 评论(0) 推荐(2) 编辑
上一页 1 2 3 4 5 6 ··· 9 下一页