自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

Realtek RTL8192EU chipset (0bda:818b) ubuntu 驱动程序

tplink 823n无线网卡驱动

2017-03-13

android Textview 实现html 图片显示

android Textview 实现html 图片点击 两种方式 一种是用webview ,调用jsInterface实现 另一种是 textview 使用Html.from()方法

2015-07-24

picasso 图片库

github 地址 https://github.com/square/picasso ADAPTER DOWNLOADS Adapter re-use is automatically detected and the previous download canceled. @Override public void getView(int position, View convertView, ViewGroup parent) { SquaredImageView view = (SquaredImageView) convertView; if (view == null) { view = new SquaredImageView(context); } String url = getItem(position); Picasso.with(context).load(url).into(view); } IMAGE TRANSFORMATIONS Transform images to better fit into layouts and to reduce memory size. Picasso.with(context) .load(url) .resize(50, 50) .centerCrop() .into(imageView) You can also specify custom transformations for more advanced effects. public class CropSquareTransformation implements Transformation { @Override public Bitmap transform(Bitmap source) { int size = Math.min(source.getWidth(), source.getHeight()); int x = (source.getWidth() - size) / 2; int y = (source.getHeight() - size) / 2; Bitmap result = Bitmap.createBitmap(source, x, y, size, size); if (result != source) { source.recycle(); } return result; } @Override public String key() { return "square()"; } } Pass an instance of this class to the transform method. PLACE HOLDERS Picasso supports both download and error placeholders as optional features. Picasso.with(context) .load(url) .placeholder(R.drawable.user_placeholder) .error(R.drawable.user_placeholder_error) .into(imageView); A request will be retried three times before the error placeholder is shown. RESOURCE LOADING Resources, assets, files, content providers are all supported as image sources. Picasso.with(context).load(R.drawable.landing_screen).into(imageView1); Picasso.with(context).load("file:///android_asset/DvpvklR.png").into(imageView2); Picasso.with(context).load(new File(...)).into(imageView3); DEBUG INDICATORS For development you can enable the display of a colored ribbon which indicates the image source. Call setIndicatorsEnabled(true) on the Picasso instance.

2015-06-19

mysql 驱动

java 开发连接mysql数据库驱动 版本:5.1.35

2015-05-15

zxing jar 包

条形码 二维码扫描库 支持目前为止所有的二维码编码格式 zxing 3.2.1 2015-04 打包

2015-05-15

volley jar包 1.0.15

volley jar包 google官方开源项目 网络通讯 支持图片加载 更新至2015-03

2015-05-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除