背景介绍在开发应用过程中经常会遇到显示一些不同的字体风格的信息犹如默认的LockScreen上面的时间和充电信息。对于类似的情况,可能第一反应就是用不同的多个TextView来实现,对于每个TextView设置不同的字体风格以满足需求。这里推荐的做法是使用android.text.*;和 andro...
分类:
移动开发 时间:
2015-02-03 14:56:22
阅读次数:
251
/// /// 转换成java解析一致的时间戳 /// /// /// public static string ToJavaTimestamp(this DateTime time) { ...
分类:
编程语言 时间:
2015-02-03 14:55:09
阅读次数:
183
一. fastjson生成json字符串(JavaBean,List,List,List) String jsonStrng = JSON.toJSONString(object);二. fastjson 解析json字符串为四种类型 1. JavaBean Person person = JSON...
分类:
Web程序 时间:
2015-02-03 14:38:27
阅读次数:
138
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:
其他好文 时间:
2015-02-03 14:37:44
阅读次数:
128
pojo类 package com.sg.bean;
public class User {
/**
* 用户ID
*/
private String userID;
/**
* 用户名
*/
private String userName;
/...
分类:
其他好文 时间:
2015-02-03 13:30:00
阅读次数:
150
今天练习Scala的隐式转换类遇到的一个问题,测试代码如下:
object ImplcitTest {
def main(args: Array[String]) {
import Context._
val person1 = User("zhangsan")
println(person1.getStr())
val filePath = Thre...
分类:
其他好文 时间:
2015-02-03 13:20:34
阅读次数:
115
#title#Longest Substring Without Repeating Characters #description:#Given a string, #find the length of the longest substring without #repeating chara...
分类:
其他好文 时间:
2015-02-03 13:09:35
阅读次数:
136
1、Resource.load(string path)优点:同步,使用方便缺点:只能加载Resource目录下的资源2、WWW优点:灵活,可以加载Application.streamingAssetsPath、Application.persistentDataPath目录下的资源,以及从网络上下...
分类:
编程语言 时间:
2015-02-03 13:09:11
阅读次数:
985
//根据URL回发地址获取用户json数据 private string GetJsonByUrl(string url) { System.Net.HttpWebRequest request = (System.Net.HttpWebRequest)System.Net.HttpWebRequ....
分类:
Web程序 时间:
2015-02-03 13:04:25
阅读次数:
173
string sql = @"SELECT * FROM dbo.Group_Product WHERE ProductID='" + 67839 + "';SELECT * FROM dbo.Group_ProductPictures WHERE ProductID='" + 67839 ...
分类:
数据库 时间:
2015-02-03 13:03:39
阅读次数:
177