在OC中使用“头文件”与“实现文件”来区隔代码。头文件后缀用.h,实现文件后缀用.m。未完。。。。。
分类:
移动开发 时间:
2014-10-23 20:28:52
阅读次数:
155
1. Activities An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the....
分类:
移动开发 时间:
2014-10-23 20:29:38
阅读次数:
316
項目地址:https://github.com/bauerca/drag-sort-listview
简介:DragSortListview是支持通过左右拖拉删除数据,上下拖拉排序的列表,缺点是当数据
太多时不好下拉.
API简介:
DragSortListView.DropListener>>该接口监听上下拖动时,位置变化的监听器;
DragSortListView.Remov...
分类:
移动开发 时间:
2014-10-23 19:22:36
阅读次数:
258
Android系统中会根据屏幕分辨率范围,制定默认的density,既320(xhdpi),那么我们也可以手动修改density。
修改的方式在system.prop中修改ro.sf.lcd_density的值;
例如ro.sf.lcd_density=480;
我们可以使用adb命令查询该属性:
adb shell getprop ro.sf.lcd_density...
分类:
移动开发 时间:
2014-10-23 19:24:04
阅读次数:
573
Android使用DOM生成和输出XML格式数据
本文主要简单讲解如何使用DOM生成和输出XML数据。
1. 生成和输出XML数据
代码及注释如下:
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builde...
分类:
移动开发 时间:
2014-10-23 19:22:04
阅读次数:
180
github上面有个例子很好的列举了NineOldAndroids兼容动画的用法。下载了下来然后运行测试了下:
因为要引用nineoldandroids的项目,我这里直接把它的源代码拷贝进去了,用做测试。
android 11版本也有ObjectAnimator动画属性,但是不能兼容10版本甚至8的版本号,国内这个版本号的手机份额还是不小的。所以兼容也必须只有用这个开源的了。
st...
分类:
移动开发 时间:
2014-10-23 19:21:28
阅读次数:
279
1. 将UILabel控件的Text属性设为Attributed2. 在viewDidLoad方法中添加如下语句:NSDictionary *underlineAttribute = @{NSUnderlineStyleAttributeName: @(NSUnderlineStyleSingle)...
分类:
移动开发 时间:
2014-10-23 19:09:36
阅读次数:
130
http://www.apkbus.com/android-130504-1-1.html#import #import "FirstViewController.h"#import "SecondViewController.h"@interface ViewController : UIView...
分类:
移动开发 时间:
2014-10-23 19:11:39
阅读次数:
168
1、简单的ALertDialog:Dialog alertDialog = new AlertDialog.Builder(this) .setTitle("标题") .setMessage("内容") .setIcon(R.drawable.ic_laun...
分类:
移动开发 时间:
2014-10-23 19:08:57
阅读次数:
182
获取手机信息:在文件 AndroidManifest.xml 中添加权限 等 String mBrand = android.os.Build.BRAND;// 手机品牌 String mType = android.os.Build.MODEL; // 手机型号 String mAndro...
分类:
移动开发 时间:
2014-10-23 19:06:14
阅读次数:
158
http://blog.sina.com.cn/s/blog_63578f140100w56m.htmlUITabBar* tabBar = [[UITabBaralloc]initWithFrame:CGRectMake(40,0.0,240,30)];[mainView addSubview:t...
分类:
移动开发 时间:
2014-10-23 18:58:19
阅读次数:
144
转自:http://blog.sina.com.cn/hyiyun近些天,有网友的电脑出现:开机后屏幕一片漆黑,但屏幕中央显示有鼠标指针,并且可移动。按键盘上的不论什么键都没有反应,鼠标也仅可移动,单、双击都无效。说得简单点儿,就是电脑黑屏,仅仅显示鼠标。如上图事实上,我早在11月2日早晨8:30就...
分类:
移动开发 时间:
2014-10-23 18:57:58
阅读次数:
98
package android.util; import java.util.LinkedHashMap; import java.util.Map; /** * A cache that holds strong references to a limited number of ...
分类:
移动开发 时间:
2014-10-23 18:55:12
阅读次数:
177
首先,在开始具体操作前,我们必须熟悉安卓File类的构造函数,见我的文章安卓File类http://blog.csdn.net/hemeng2009/article/details/40398063
其次,明确需求,根据文件还是文件夹选择File类的构造函数。
文件夹:
if (Environment.getExternalStorageState().equals(Environment....
分类:
移动开发 时间:
2014-10-23 17:50:09
阅读次数:
195
自己总结的,习惯于去解析程序的抽象用法,写博客就不喜欢当做记录程序的工具,当做记录想法的笔记吧...
分类:
移动开发 时间:
2014-10-23 17:48:16
阅读次数:
274