#define DEFAULT_VOID_COLOR [UIColor whiteColor]+ (UIColor *)colorWithHexString:(NSString *)stringToConvert
{
NSString *cString = [[stringToConvert stringByTrimmingCharactersInSet:[NSCharacterSet w...
分类:
移动平台 时间:
2014-07-19 02:17:16
收藏:
0 评论:
0 赞:
0 阅读:
232
如何实现点击按钮,弹出“正在加载数据,请稍候...”对话框,加载完了之后,对话框自动消失呢?
其实也是很简单的看下面代码:
import com.farsunset.ichat.example.R;
import android.os.Bundle;
import android.app.Activity;
import android.app.ProgressDialog;
publi...
分类:
移动平台 时间:
2014-07-19 02:17:16
收藏:
0 评论:
0 赞:
0 阅读:
336
LayoutInflater的inflate方法,在fragment的onCreateView方法中经常用到...
分类:
移动平台 时间:
2014-07-19 02:28:16
收藏:
0 评论:
0 赞:
0 阅读:
297
国家气象局提供的天气预报接口
接口地址:
http://www.weather.com.cn/data/sk/101010100.html
http://www.weather.com.cn/data/cityinfo/101010100.html
http://m.weather.com.cn/data/101010100.html
webservice工厂接口 http://www.36wu.com
快递查询接口 http://webservice.36wu....
分类:
移动平台 时间:
2014-07-19 02:27:16
收藏:
0 评论:
0 赞:
0 阅读:
302
微软日前正式宣布,公司会在未来一年内裁员1.8万人,其中今年4月刚刚并购过来的诺基亚设备与服务部门将约有1.25万名员工被裁。需要指出的是,本次的裁员人数占该公司全球12多万名员工总数的14%,同时这也是微软公司39年历史上最大规模的一次裁员。微软方面表示,此次裁员主要是为了在收购诺基亚设备与服务业务之后对公司业务进行精简和整合。
当地时间周四,微软CEO萨提亚-纳德拉(Satya Na...
分类:
移动平台 时间:
2014-07-19 02:17:06
收藏:
0 评论:
0 赞:
0 阅读:
410
cocos2d-x-3.0 android环境部署。...
分类:
移动平台 时间:
2014-07-19 02:44:06
收藏:
0 评论:
0 赞:
0 阅读:
316
项目中,需要在代码中动态更改TextView的颜色,原先使用如下:
text.setTextColor(R.color.black);
为生效,查阅资料后,正确写法如下:
text.setTextColor(context.getResources().getColor(R.color.black));
或:
text.setTextColor(getResource...
分类:
移动平台 时间:
2014-07-19 08:16:37
收藏:
0 评论:
0 赞:
0 阅读:
327
先看效果图:
使用说明:
在布局文件中:
在J...
分类:
移动平台 时间:
2014-07-19 02:27:56
收藏:
0 评论:
0 赞:
0 阅读:
455
在上一篇文章Android
最火的快速开发框架XUtils中简单介绍了xUtils的基本使用方法,这篇文章说一下xUtils里面的注解原理。
先来看一下xUtils里面demo的代码:
@ViewInject(R.id.tabhost)
private FragmentTabHost mTabHost;
@ViewInject(R.id.big_img)
pri...
分类:
移动平台 时间:
2014-07-19 02:14:55
收藏:
0 评论:
0 赞:
0 阅读:
370
Android开发中遇到的adb问题. 解决方法大全....
分类:
移动平台 时间:
2014-07-19 02:25:55
收藏:
0 评论:
0 赞:
0 阅读:
332
先看效果图
如何使用
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import android.app.Activity;
import android.app.AlertDialo...
分类:
移动平台 时间:
2014-07-19 02:47:55
收藏:
0 评论:
0 赞:
0 阅读:
2464
synchronized 是java语言关键字,当它用来修饰一个方法或者一个代码块的时候,能够保证在同一时刻最多只有一个线程执行该段代码。synchronized 关键字,它包括两种用法:synchronized 方法和 synchronized 块。
本文直接以代码的形式来展示 synchronized 关键字的使用:
【1】synchronized Demo1:...
分类:
移动平台 时间:
2014-07-19 02:11:46
收藏:
0 评论:
0 赞:
0 阅读:
247
先看效果图
这个是我们自己的apk点击之后的效果
下边是布局文件
activity_main.xml主布局文件
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="matc...
分类:
移动平台 时间:
2014-07-19 02:15:46
收藏:
0 评论:
0 赞:
0 阅读:
330
Android仿iOS7的UISegmentedControl 分段, 这里只简单做了两个按钮的,效果图.....
分类:
移动平台 时间:
2014-07-19 08:01:16
收藏:
0 评论:
0 赞:
0 阅读:
393
前言
android中滑动控件很多,相信大部分同学接触的都是...
分类:
移动平台 时间:
2014-07-19 08:19:56
收藏:
0 评论:
0 赞:
0 阅读:
536
使用NSDictionaty来设置文本的属性:
NSDictionary * attributes = @{NSFontAttributeName: [UIFont fontWithName:@"Heiti SC" size:20]};
[confirmBarButton setTitleTextAttributes:attributes forState:UIControlStateN...
分类:
移动平台 时间:
2014-07-19 08:06:25
收藏:
0 评论:
0 赞:
0 阅读:
481
今早群里有个盆友问如何将 Qt 开发的 Android 应用的名字设置为中文,试验了一下,有两个办法。...
分类:
移动平台 时间:
2014-07-19 02:28:06
收藏:
0 评论:
0 赞:
0 阅读:
520
Android中实现view的更新有两组方法,一组是invalidate,另一组是postInvalidate,其中前者是在UI线
程自身中使用,而后者在非UI线程中使用。
Android提供了Invalidate方法实现界面刷新,但是Invalidate不能直接在线程中调用,因为他是违背了单
线程模型:Android UI操作并不是线程安全的,并且这些操作必须在UI线程中...
分类:
移动平台 时间:
2014-07-19 02:24:06
收藏:
0 评论:
0 赞:
0 阅读:
290
Errors occurred during the build.
Errors running builder 'Android Resource Manager' on project 'DeskClock'.
java.lang.NullPointerException
delete the project and import it again....
分类:
移动平台 时间:
2014-07-19 08:12:20
收藏:
0 评论:
0 赞:
0 阅读:
1004