Android 图片开源库 BitmapView
- 授权协议: Apache
- 开发语言: Java
- 操作系统: Android
- 软件首页: https://github.com/qii/BitmapView
- 软件文档: https://github.com/qii/BitmapView
软件介绍
BitmapViewAndroid 开源库, 支持显示任意尺寸JPG PNG图片
特性
- 缩放
- 滚动和Fling
- 旋转
Gradle 依赖
```gradle
dependencies {
compile 'org.qiibeta.views:bitmapview:1.0.1'
}```Demo
下载 sample.apk
使用说明
```java
public class YourApplication extends Application {
@Override
public void onTrimMemory(int level) {
super.onTrimMemory(level);
TileImage.clearBitmapRecyclePool();
}
}``````java
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
String path=""; //the actual file path
Bitmap thumbnailBitmap=null;
GestureBitmapView bitmapView=(GestureBitmapView)findViewById(R.id.bv);
bitmapView.setBitmapSource(BitmapSource.newInstance(Uri.parse(path),thumbnailBitmap));
}```ViewPager的bug,要这样修正
```java
public class FixViewPager extends ViewPager {
public FixViewPager(Context context) {
super(context);
}
public FixViewPager(Context context, AttributeSet attrs) {
super(context, attrs);
}
@Override
public boolean onInterceptTouchEvent(MotionEvent ev) {
try {
return super.onInterceptTouchEvent(ev);
} catch (Exception ignored) {
}
return false;
}
}
The Filter Bubble
Eli Pariser / Penguin Press / 2011-5-12 / GBP 16.45
In December 2009, Google began customizing its search results for each user. Instead of giving you the most broadly popular result, Google now tries to predict what you are most likely to click on. Ac......一起来看看 《The Filter Bubble》 这本书的介绍吧!
