通常的Android应用开发中都要图片,找美工设计些图片,放到项目中就可以了,不过除了使用现有的图片外,我们也可以用2D绘图,就是在View画一些图案或文字。其中通常要用到的类有Canvas(画布),Paint(画笔)及Color(用来设置画笔颜色)类,当然还可能用到其它很多类,都是根据自己项目中的需要来定的。
Canvas:画布,用来直接在View上绘制诸如矩形,圆形,文字,位图等图形。...
分类:
移动开发 时间:
2015-04-24 14:26:22
阅读次数:
150
通知中心(NSNotificationCenter)每一个应用程序都有一个通知中心(NSNotificationCenter)实例,专门负责协助不同对象之间的消息通信
任何一个对象都可以向通知中心发布通知(NSNotification),描述自己在做什么。其他感兴趣的对象(Observer)可以申请在某个特定通知发布时(或在某个特定的对象发布通知时)收到这个通知通知(NSNotification)...
分类:
移动开发 时间:
2015-04-24 14:21:24
阅读次数:
163
使用 busybox ifconfig eth0 hw ether AA:BB:CC:DD:EE 可以修改,但是每次重启都会改回原来的.所以要修改 /etc/init.mini210.sh (可能不一样) 添加一段 ifup eth0busybox ifconfig eth0 hw ether AA...
分类:
移动开发 时间:
2015-04-24 14:13:47
阅读次数:
159
导航栏的设置标题publicHelloWorldScreen () : base ("HelloWorldScreen", null){ this.Title="World!"; }隐藏导航栏public override void ViewWillAppear (bool animated) { ...
分类:
移动开发 时间:
2015-04-24 14:11:29
阅读次数:
185
注册:getContentResolver().registerContentObserver( Uri.parse("content://sms"), true, new SmsObserver(this, new Handler()));监听://用于检测发出的短信 public c...
分类:
移动开发 时间:
2015-04-24 14:10:50
阅读次数:
198
我觉得这个算法比较陌生,对我不是简单题目public class Solution { public boolean isHappy(int n) { // 这个叫“模拟”的算法是什么http://meetqun.com/thread-8853-1-1.html H...
分类:
移动开发 时间:
2015-04-24 14:09:39
阅读次数:
119
目录:内联模板 : script路由机制 : 状态机导航视图 : ion-nav-view模板视图 : ion-view导航栏 : ion-nav-bar回退按钮 : ion-nav-back-button内联模板 : script可能你没有注意过,HTML中常用的script标签在AngularJ...
分类:
移动开发 时间:
2015-04-24 14:06:39
阅读次数:
354
IntentIntent基本使用 Intent可以理解为不同组件通信的媒介或者信使。 Intent可以启动一个Activity,也可以启动一个Service,还可以发起一个广播Broadcast。 具体方法如下表:组件名称方法名称ActivitystartActivity()startActi...
分类:
移动开发 时间:
2015-04-24 14:03:42
阅读次数:
135
看到一篇比较有意思的文章,分享一下。原网址:http://blog.csdn.net/rushkid02/article/details/8063792几乎所有的Web开发语言都支持Session功能,Servlet也不例外。 Servlet/JSP中的Session功能是通过作用域(scope)这...
分类:
移动开发 时间:
2015-04-24 14:03:49
阅读次数:
135
In myprevious postI showed how to perform asynchronous web API calls in native Android code, aftershowing how to do it in native iOSa few days before....
分类:
移动开发 时间:
2015-04-24 13:59:13
阅读次数:
151
工具类:package com.example.test;public class EmojiFilter { /** * 检测是否有emoji字符 * @param source * @return FALSE,包含图片 */ public static boolean containsEmoji...
分类:
移动开发 时间:
2015-04-24 14:00:09
阅读次数:
168
前言 以前在实现ListView下拉刷新和上拉加载数据的时候都是去继承原生的ListView重写它的一些方法,实现起来非常繁杂,需要我们自己去给ListView定制下拉刷新和上拉加载的布局文件,然后添加ScrollView和OnTouch监听,设置回调接口获取数据,为了更好的交互体验,我们还不能直....
分类:
移动开发 时间:
2015-04-24 13:58:47
阅读次数:
261
(转自:http://blog.sina.com.cn/s/blog_5de73d0b0100zfm8.html) 1 private Bitmap getBitmapFromUri(Uri uri) 2 { 3 try 4 { 5 // 读取uri所在的图片 6 Bitmap...
分类:
移动开发 时间:
2015-04-24 13:54:05
阅读次数:
145
http://blog.csdn.net/dj0379/article/details/386381251,使用环境win7 32位 + vs20102,软件准备(下方绿色文字带链接)cocos2dx-v2.2.2jdk7android sdkandroid ndkadt bundleantpyth...
分类:
移动开发 时间:
2015-04-24 13:54:29
阅读次数:
367
1。 点击图片,链接,甚至是空白的框框,会产生一个淡蓝色的透明背景,pc上没事。这个怎么处理? 在css中增加一行样式 body {-webkit-tap-highlight-color: rgba(0, 0, 0, 0);} 功能是去掉高亮色,r,g,b,透明度. 只在webkit核心的浏览器.....
分类:
移动开发 时间:
2015-04-24 13:51:25
阅读次数:
149
使用Android Studio和Genymotion模拟器搭建Andriod开发环境
分类:
移动开发 时间:
2015-04-24 13:53:11
阅读次数:
196
UIWebView?*?d_intro?=?[[UIWebView?alloc]?init];
d_intro.delegate?=?self;
d_intro.dataDetectorTypes?=?UIDataDetectorTypeLink;
????//取消右侧,下侧滚动条,去处上下滚动边界的黑色背景
??...
分类:
移动开发 时间:
2015-04-24 12:45:40
阅读次数:
172