系统相册
ThemeData.init(new ThemeData.ThemeBuilder()
.spanCount(3)
.titleBarColor(Color.parseColor("#009def"))
.titleTextColor(Color.WHITE)
.backgroundColor(Color.WHITE)
.checkBoxDrawable(R.drawable.checkbox_style)
.statusBarColor(getResources().getColor(R.color.main_color))
.build());
new PhotoAlbum(MainActivity.this)
.addRemovePaths(list)
.setLimitCount(3)
.startAlbum()
.removeExpandType(PhotoAlbum.ExpandType.GIF)// 忽略GIF图片
.subscribe(new Action1<List<String>>() {
@Override
public void call(List<String> paths) {
list.clear();
list.addAll(paths);
adapter.notifyDataChanged();
Log.d("PhotoAlbum",list.toString());
}
});