1 SpannableString msp = new SpannableString("测试"+XM+"更换当前号码将从手机发送一条普通短信进行验证");2 msp.setSpan(new ForegroundColorSpan(Color.BLUE), 2, XM.length()+2, Spa...
分类:
移动开发 时间:
2015-10-21 14:03:59
阅读次数:
263
Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, wh...
分类:
其他好文 时间:
2015-10-21 13:53:18
阅读次数:
227
一,基本语法 //1,css引入方法 ????
<link?rel="stylesheet"?type="text/css"?href="styles.css"> 2,css书写格式 h1,h2{
???color:blue;font_size
} 二,派生选择器: ??????? 根据元素其位...
分类:
Web程序 时间:
2015-10-21 12:50:18
阅读次数:
257
There are a row ofnhouses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certain ...
分类:
其他好文 时间:
2015-10-20 13:50:33
阅读次数:
206
设置这个view背景色:[UIColor colorWithRed:0 green:0 blue:0 alpha:0.3];效果如下:
分类:
其他好文 时间:
2015-10-19 17:26:29
阅读次数:
108
题目:翻转字符串给定一个字符串,逐个翻转字符串中的每个单词。样例给出s ="the sky is blue",返回"blue is sky the"说明单词的构成:无空格字母构成一个单词输入字符串是否包括前导或者尾随空格?可以包括,但是反转后的字符不能包括如何处理两个单词间的多个空格?在反转字符串中...
分类:
其他好文 时间:
2015-10-18 16:54:44
阅读次数:
517
public class MyWaveView extends View{ private ArrayList list; private int[] colors = {Color.RED,Color.BLUE, Color.DKGRAY,Color.GR...
分类:
移动开发 时间:
2015-10-17 23:44:57
阅读次数:
297
java的枚举类型详解: 简单示例:public enum Color{ RED,BLUE,BLACK,YELLOW,GREEN } 复杂示例(带自定义构造方法与类型)public enum EnumTest { FRANK("The given name of me...
分类:
编程语言 时间:
2015-10-16 14:51:58
阅读次数:
307
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the". 1 public String reverseWords(...
分类:
其他好文 时间:
2015-10-14 15:47:50
阅读次数:
109
Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, wh...
分类:
其他好文 时间:
2015-10-11 11:30:02
阅读次数:
179