- 博客(7)
- 资源 (7)
- 收藏
- 关注
原创 截屏代码
截取应用 private void getScreen() { View content = findViewById(R.id.layoutroot); Bitmap bitmap = content.getDrawingCache(); File file = new File( Environment.getExternalStorageDirectory()
2015-04-21 09:33:22 461
原创 文件 创建
1、File类的createNewFile根据抽象路径创建一个新的空文件,当抽象路径制定的文件存在时,创建失败 2、File类的mkdir方法根据抽象路径创建目录 3、File类的mkdirs方法根据抽象路径创建目录,包括创建必需但不存在的父目录 4、File类的createTempFile方法创建临时文件,可以制定临时文件的文件名前缀、后缀及文件所在的目录,如果不指定目录,则存放
2015-04-21 09:28:20 500
翻译 listview 中的不同 item 实现
原文 链接 http://android.leocardz.com/multiple-layout-listview/ Basically, you have to follow these steps: Create the custom layous; Create a custom adapter; Override getViewTypeCount() me
2015-04-18 17:19:55 402
原创 关于设备像素 DisplayMetrics
/** * The exact physical pixels per inch of the screen in the X dimension. */ public float xdpi; /** * The exact physical pixels per inch of the screen in the Y dimension.
2015-04-17 15:50:01 367
原创 this message is already use 解决
对同一个消息对象,重复多次发送便会报This message is already in use错误。解决方法就是重新获取消息对象。
2015-04-16 18:19:16 1823
原创 getText 与getString 区别
Android提供多种获取资源文件方法,但是需要注意以下方法: CharSequence getText(int resId):返回本地、样式化的字符。 String getString(int resId) :返回字符串 /** * Return the string value associated with a particular resource ID. T
2015-04-16 15:51:00 1069
原创 android studio使用 (一)
添加注释模板 Settings->IDE Settings->File and Code Templates->Includes 快捷键 keymap--fix javadoc 不明白为什么设置代码模板之后就不能使用模板了.
2015-04-15 10:04:37 344
android Textview 实现html 图片显示
2015-07-24
picasso 图片库
2015-06-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人