Android TextView换行问题

<1>如果直接在XML文件中写入"aaaaa\nbbbb"可以换行。
<2>在Java文件中用textViewObj.setText("aaaa\nbbbb")也可以换行。
<3>将数据封装到模型类后,在Java文件中使用textViewObj.setText(obj.getXXX()).
在android的模拟器界面上显示没有换行的"aaaaa\nbbbb",'\n'没有转义成换行。

解决办法:
定义换行字符为“|”,然后在android代码中替换为换行符“\n”
TextView mTextView = new TextView(this);
mTextView.setText((currentQuestion.getDisplayName().replace("|","\n")))

Posted in 移动终端 at March 25, 2014. by 傻猫 .    Views: 3207    No Comments

忙,忙,忙

最近这两个月,忙的不可开交,从过完年后好像没有闲下来过,注定今年是一个苦命年呀。

每年总有那么一两个月要犯困,没精神,工作效率不高,天黑就想睡觉,TNND

需要调节一下,调节。。

Posted in 我的生活 at March 23, 2014. by 傻猫 .    Views: 2046    No Comments

iOS7.1固件下载地址大全(苹果官方正式版)

iOS 7.1固件下载地址(IPSW):
iPhone 5 (CDMA)
http://appldnld.apple.com/iOS7.1/031-4537.20140310.4PCL5/iPhone5,2_7.1_11D167_Restore.ipsw

iPhone 5 (GSM)
http://appldnld.apple.com/iOS7.1/031-4323.20140310.gdKZa/iPhone5,1_7.1_11D167_Restore.ipsw

iPhone 5c (CDMA)
http://appldnld.apple.com/iOS7.1/031-4322.20140310.kOVha/iPhone5,4_7.1_11D167_Restore.ipsw

iPhone 5c (GSM)
http://appldnld.apple.com/iOS7.1/031-4631.20140310.6Gser/iPhone5,3_7.1_11D167_Restore.ipsw

iPhone 5s (CDMA)
http://appldnld.apple.com/iOS7.1/031-4452.20140310.Lv4Gr/iPhone6,2_7.1_11D167_Restore.ipsw

iPhone 5s (GSM)
http://appldnld.apple.com/iOS7.1/031-4716.20140310.F29df/iPhone6,1_7.1_11D167_Restore.ipsw

iPhone 4s
http://appldnld.apple.com/iOS7.1/031-4642.20140310.FFN31/iPhone4,1_7.1_11D167_Restore.ipsw

iPhone 4 (GSM Rev A)
http://appldnld.apple.com/iOS7.1/031-4450.20140310.UeuCA/iPhone3,2_7.1_11D169_Restore.ipsw

iPhone 4 (GSM)
http://appldnld.apple.com/iOS7.1/031-4639.20140310.Pvdbt/iPhone3,1_7.1_11D169_Restore.ipsw

iPhone 4 (CDMA)
http://appldnld.apple.com/iOS7.1/031-4333.20140310.ZXCj3/iPhone3,3_7.1_11D167_Restore.ipsw

查看更多内容...

Posted in 杂七杂八 at March 11, 2014. by 傻猫 .    Views: 2402    No Comments

MSSQL日期代码格式

1 SELECT CONVERT(varchar(100),GETDATE(),0)05920119:12AM
2 SELECT CONVERT(varchar(100),GETDATE(),1)05/09/11
3 SELECT CONVERT(varchar(100),GETDATE(),2)11.05.09
4 SELECT CONVERT(varchar(100),GETDATE(),3)09/05/11
5 SELECT CONVERT(varchar(100),GETDATE(),4)09.05.11
6 SELECT CONVERT(varchar(100),GETDATE(),5)09-05-11
7 SELECT CONVERT(varchar(100),GETDATE(),6)090511
8 SELECT CONVERT(varchar(100),GETDATE(),7)0509,11
9 SELECT CONVERT(varchar(100),GETDATE(),8)09:13:14
10 SELECT CONVERT(varchar(100),GETDATE(),9)05920119:13:14:670AM
11 SELECT CONVERT(varchar(100),GETDATE(),10)05-09-11
12 SELECT CONVERT(varchar(100),GETDATE(),11)11/05/09
13 SELECT CONVERT(varchar(100),GETDATE(),12)110509
14 SELECT CONVERT(varchar(100),GETDATE(),13)0905201109:13:14:670
15 SELECT CONVERT(varchar(100),GETDATE(),14)09:13:14:670
16 SELECT CONVERT(varchar(100),GETDATE(),20)2011-05-0909:13:14
17 SELECT CONVERT(varchar(100),GETDATE(),21)2011-05-0909:13:14.670
18 SELECT CONVERT(varchar(100),GETDATE(),22)05/09/119:15:33 AM
19 SELECT CONVERT(varchar(100),GETDATE(),23)2011-05-09
20 SELECT CONVERT(varchar(100),GETDATE(),24)09:15:33
21 SELECT CONVERT(varchar(100),GETDATE(),25)2011-05-0909:15:33.140
22 SELECT CONVERT(varchar(100),GETDATE(),100)05920119:15AM
23 SELECT CONVERT(varchar(100),GETDATE(),101)05/09/2011
24 SELECT CONVERT(varchar(100),GETDATE(),102)2011.05.09
25 SELECT CONVERT(varchar(100),GETDATE(),103)09/05/2011
26 SELECT CONVERT(varchar(100),GETDATE(),104)09.05.2011
27 SELECT CONVERT(varchar(100),GETDATE(),105)09-05-2011
28 SELECT CONVERT(varchar(100),GETDATE(),106)09052011
29 SELECT CONVERT(varchar(100),GETDATE(),107)0509,2011
30 SELECT CONVERT(varchar(100),GETDATE(),108)09:16:38
31 SELECT CONVERT(varchar(100),GETDATE(),109)05920119:16:38:543AM
32 SELECT CONVERT(varchar(100),GETDATE(),110)05-09-2011
33 SELECT CONVERT(varchar(100),GETDATE(),111)2011/05/09
34 SELECT CONVERT(varchar(100),GETDATE(),112)20110509
35 SELECT CONVERT(varchar(100),GETDATE(),113)0905201109:17:19:857
36 SELECT CONVERT(varchar(100),GETDATE(),114)09:17:19:857
37 SELECT CONVERT(varchar(100),GETDATE(),120)2011-05-0909:17:19
38 SELECT CONVERT(varchar(100),GETDATE(),121)2011-05-0909:17:19.857
39 SELECT CONVERT(varchar(100),GETDATE(),126)2011-05-09T09:17:19.857
40 SELECT CONVERT(varchar(100),GETDATE(),130)6 ????? ???????14329:17:19:857AM
41 SELECT CONVERT(varchar(100),GETDATE(),131)6/06/14329:17:19:857AM

Posted in 数据库 at March 1, 2014. by 傻猫 .    Views: 2688    No Comments