功能: 1. 在TextView中显示图片,类似于含有表情图片的聊天
2.设置TextView的部分text可以点击说明: SpannableString
实现了CharSequence接口,可以将text的指定部分标记为CharacterStyle对象,如ImageSpan,Clickabl...
分类:
移动开发 时间:
2014-05-12 04:23:52
阅读次数:
625
如果在内部类里面用this就是指这个内部类的实例,而OuterClassName.this就是它外面的那个类的实例
ClassName.this这个用法多用于在nested class(内部类)中,当inner class(内部类)必顺使用到outer class(外部类)的this instance(实例)时,就用OuterClassName.this
android中常...
分类:
移动开发 时间:
2014-05-11 15:06:09
阅读次数:
333
int main(int argc, char *argv[]){}
argc:传入字符串常量个数。
argv 是字符串数组,argv[i]指向第i个字符串常量。第0个为程序名。...
分类:
其他好文 时间:
2014-05-11 07:06:06
阅读次数:
274
Triangle
Time Limit: 3000MS
Memory Limit: 30000K
Total Submissions: 8038
Accepted: 2375
Description
Given n distinct points on a plane, your task is to find the triangl...
分类:
其他好文 时间:
2014-05-11 06:36:44
阅读次数:
425
// boost2.cpp : 定义控制台应用程序的入口点。
//boost gregorian_date usage
//made by davidsu33 2014-5-10
#include "stdafx.h"
#include
#include
#include
#include
#include
using namespace std...
分类:
其他好文 时间:
2014-05-11 03:46:57
阅读次数:
814
题目
Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
For example:
Given the below binary tree,...
分类:
其他好文 时间:
2014-05-11 03:25:24
阅读次数:
298
本文为senlie原创,转载请保留此地址:http://blog.csdn.net/zhengsenlie
Maximum Depth of Binary Tree
Total Accepted: 16605 Total
Submissions: 38287
Given a binary tree, find its maximum depth.
...
分类:
其他好文 时间:
2014-05-11 01:58:31
阅读次数:
441
// 使用实例方法创建NSString对象 NSString *string1 =
[[NSStringalloc]initWithFormat:@"姓名流年"]; NSLog(@"%@", string1); NSString
*string2 = [[NSSt...
分类:
其他好文 时间:
2014-05-11 00:47:31
阅读次数:
356
// NSDictionary NSDictionary *dictionary = [[
NSDictionaryalloc]initWithObjectsAndKeys:@"value1", @"key1", @"value2", @"key2",
@"v3", @"k3", @"v...
分类:
其他好文 时间:
2014-05-11 00:20:07
阅读次数:
308