在上篇文章中,我们通过跟踪源码,我们了解了Activity、Window、DecorView以及View之间的关系(查看文章:http://www.cnblogs.com/jerehedu/p/4607599.html#gui)。那么整个Activity的界面到底是如何绘制出来的呢?既然Deco.....
分类:
移动开发 时间:
2015-07-27 12:22:46
阅读次数:
194
在上篇文章中,我们通过跟踪源码,我们了解了Activity、Window、DecorView以及View之间的关系(查看文章:http://blog.csdn.net/jerehedu/article/details/47021541)。那么整个Activity的界面到底是如何绘制出来的呢?既然DecorView作为Activity的顶层界面视图,那么整个界面的绘制工作应该从它开始,下面我们继续跟...
分类:
移动开发 时间:
2015-07-27 11:06:27
阅读次数:
177
1js和java中的不定参数小案列(js)View Code小案列(java)public class Test{ public static void main(String[] args){ show("a","b"); show("a","b","c"...
分类:
其他好文 时间:
2015-07-27 10:55:47
阅读次数:
125
1 Volley发送get请求:[java]view plaincopypublicvoidgetJson(){Stringurl="http://"+host+":8080/web/json.jsp?username=xjs&password=123456";mQueue.add(newJsonO...
分类:
移动开发 时间:
2015-07-27 07:05:54
阅读次数:
318
效果图:利用https://github.com/linger1216/labelview 类库来实现具体代码 问度娘。{LabelView label = new LabelView(this);label.setText("HD");label.setBackgroundColor(0xffE9...
分类:
其他好文 时间:
2015-07-27 01:51:41
阅读次数:
132
个性化View控件虽然你在多处可以找到 但是这个整理的不可以不看欧:主要介绍不错的个性化View,包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar、TextView、ScrollView、TimeVi...
分类:
移动开发 时间:
2015-07-27 01:49:12
阅读次数:
148
1、使用UIWebView加载网页运行XCode 4.3,新建一个Single View Application,命名为WebViewDemo。2、加载WebView在ViewController.h添加WebView成员变量和在ViewController.m添加实现[cpp] view plai...
分类:
Web程序 时间:
2015-07-27 00:16:43
阅读次数:
195
上篇文章说了Model,这次说说Collection,collection就是model的集合,用来装载model对象的定义方法var Persons = new Backbone.Collection.extend({ model: person, initialize:functio...
分类:
其他好文 时间:
2015-07-27 00:14:32
阅读次数:
169
iOS 检测版本更新如果我们要检测app版本的更新,那么我们必须获取当前运行app版本的版本信息和appstore 上发布的最新版本的信息。当前运行版本信息可以通过info.plist文件中的bundle version中获取:[cpp]view plaincopyNSDictionary*info...
分类:
移动开发 时间:
2015-07-26 23:58:39
阅读次数:
193
DOS命令
命令
意义 net view
获取局域网中的所有主机名
ipconfig -all
获取本地IP,主机名,MAC地址
arp -a
获取本局域网中的所有IP地址和物理地址
ping -a x.x.x.x
获取x.x.x.x的主机名
nbtstat -a 主机名
获取MAC地址
java exec执行外部命令String command = "...
分类:
编程语言 时间:
2015-07-26 22:45:25
阅读次数:
201