自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(2)
  • 资源 (7)
  • 收藏
  • 关注

转载 ANDROID DATABINDING: GOODBYE PRESENTER, HELLO VIEWMODEL!

from http://tech.vg.no/2015/07/17/android-databinding-goodbye-presenter-hello-viewmodel/The Model-View-Presenter-pattern (MVP) has been the dominating trend lately when it comes the UI-layer

2016-01-22 11:37:03 901

原创 android studio 生成 aidl 文件

其实很简单的..在AndroidManifest.xml 文件中的包名下,右键new 一个aidl的文件,然后在build/generated/source/aidl/debug/ 下面就会生成相应的aidl文件.如果没有生成 就重新编译一下项目就有了

2016-01-05 14:22:16 359

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关注的人

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