-------------------------------------------TextKitDemo---------------------------------------- (void)viewDidLoad{ [super viewDidLoad]; _text...
分类:
移动开发 时间:
2014-09-07 23:39:15
阅读次数:
302
XML:context_menu.xml: Activtiy:public class MenuActivity extends Activity {public void onCreate(Bundle savedInstanceState) {super.onCreate(sav...
分类:
移动开发 时间:
2014-09-07 14:41:55
阅读次数:
219
路由启动由CamelContext的start()方法开始,在该方法中调用了super.start(),即调用父类ServiceSupport的start()方法,ServiceSupport的start()方法中调用了doStart()方法又回到CamelContext的doStart()方法,该方法中调用了doStartCamel()方法,在doStartCamel()方法中有两个最重要的方法...
分类:
其他好文 时间:
2014-09-07 11:03:15
阅读次数:
231
1 function class(super, autoConstructSuper) 2 local classType = {}; 3 classType.autoConstructSuper = autoConstructSuper or (autoConstructSupe...
分类:
其他好文 时间:
2014-09-06 18:32:03
阅读次数:
220
首先,升级一下内存,8G以上最好;然后,下载一个super speed的内存硬盘映射工具,从内存中拿出来1-2GB做缓冲硬盘,比方叫H盘,类似SSD吧,可是比SSD更快。接着,把photoshop的暂时文件文件夹、系统的暂时文件文件夹(环境变量中改动)、迅雷下载文件夹、浏览器的缓存文件夹(如Chro...
分类:
其他好文 时间:
2014-09-04 22:09:50
阅读次数:
176
Android 执行Adb shell 命令大多需要root权限,Android自带的Runtime. getRuntime().exec()容易出错,在网上找到了一个执行adb shell命令的类代码如下:/**检查手机是否存在root权限,发送一些消息*/package com.dx.super...
分类:
移动开发 时间:
2014-09-04 22:04:30
阅读次数:
269
我们使用社交软件的过程中多多少少会为别人的帖子点赞,如图 : 可以看到用户页面显示出来的只是点了赞的用户的名称,点击这些名称可以进入到该用户的主页。我们就来实现类似的效果。直接上代码吧。 @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(...
分类:
移动开发 时间:
2014-09-04 14:58:39
阅读次数:
287
自定义checkbox中的勾选框图标,这次因为想偷懒,图标弄的大了些,然后一系列的问题就都引出来了。
1、图标比checkbox的layout_height高,看不见了。
很吐血吧,CompoundButton中的源码可以看到下面代码
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
final Dra...
分类:
移动开发 时间:
2014-09-04 11:49:39
阅读次数:
232
MainViewController.h#import<UIKit/UIKit.h>
@interfaceMainViewController:UIViewController<UIScrollViewAccessibilityDelegate>
@endMainViewController.m#import"MainViewController.h"
@interfaceMainViewController()
@end
@implementationMainViewControll..
分类:
其他好文 时间:
2014-09-04 10:37:59
阅读次数:
218
首先重写UITableViewCell的初始化方法:- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (...
分类:
移动开发 时间:
2014-09-04 09:46:27
阅读次数:
195