07 2012 档案
获取android系统信息或应用程序信息
摘要:1.获取当前系统的版本号: textView.setText("Product Model: " + android.os.Build.MODEL + "," + android.os.Build.VERSION.SDK + "," + android.os.Build.VERSION.RELEASE); 或者:int currentapiVersion=android.os.Build.VERSION.SDK_INT; 阅读全文
posted @ 2012-07-27 18:15 alex_wongh 阅读(518) 评论(0) 推荐(0)
Android中通过typeface设置字体
摘要:Android系统默认支持三种字体,分别为:“sans”, “serif”, “monospace",除此之外还可以使用其他字体文件(*.ttf)方法一:XML中使用android默认字体<!-- 使用默认的sans字体--> <TextView Android:id="@+id/sans"Android:text="Hello,World"Android:typeface="sans"Android:textSize="20sp" /><!-- 使用默认的serifs字体- 阅读全文
posted @ 2012-07-17 17:35 alex_wongh