use of com.lzy.demo.utils.GlideImageLoader in project okhttp-OkGo by jeasonlzy.
the class RxFormUploadActivity method selectImage.
@OnClick(R.id.selectImage)
public void selectImage(View view) {
ImagePicker imagePicker = ImagePicker.getInstance();
imagePicker.setImageLoader(new GlideImageLoader());
//多选
imagePicker.setMultiMode(true);
//显示拍照按钮
imagePicker.setShowCamera(true);
//最多选择9张
imagePicker.setSelectLimit(9);
//不进行裁剪
imagePicker.setCrop(false);
Intent intent = new Intent(this, ImageGridActivity.class);
startActivityForResult(intent, 100);
}
use of com.lzy.demo.utils.GlideImageLoader in project okhttp-OkGo by jeasonlzy.
the class CacheDemoActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_cache_demo);
initToolBar(toolbar, true, "强大的缓存");
NineGridView.setImageLoader(new GlideImageLoader());
ArrayList<NewsTabFragment> fragments = new ArrayList<>();
NewsTabFragment fragment1 = NewsTabFragment.newInstance();
fragment1.setTitle("国内最新");
fragments.add(fragment1);
NewsTabFragment fragment2 = NewsTabFragment.newInstance();
fragment2.setTitle("游戏焦点");
fragments.add(fragment2);
NewsTabFragment fragment3 = NewsTabFragment.newInstance();
fragment3.setTitle("娱乐焦点");
fragments.add(fragment3);
MyPagerAdapter adapter = new MyPagerAdapter(getSupportFragmentManager(), fragments);
viewPager.setAdapter(adapter);
viewPager.setOffscreenPageLimit(fragments.size());
tab.setupWithViewPager(viewPager);
}
use of com.lzy.demo.utils.GlideImageLoader in project okhttp-OkGo by jeasonlzy.
the class UploadActivity method select.
@OnClick(R.id.select)
public void select(View view) {
imagePicker = ImagePicker.getInstance();
imagePicker.setImageLoader(new GlideImageLoader());
imagePicker.setShowCamera(true);
imagePicker.setSelectLimit(9);
imagePicker.setCrop(false);
Intent intent = new Intent(getApplicationContext(), ImageGridActivity.class);
startActivityForResult(intent, 100);
}
use of com.lzy.demo.utils.GlideImageLoader in project okhttp-OkGo by jeasonlzy.
the class FormUploadActivity method selectImage.
@OnClick(R.id.selectImage)
public void selectImage(View view) {
ImagePicker imagePicker = ImagePicker.getInstance();
imagePicker.setImageLoader(new GlideImageLoader());
//多选
imagePicker.setMultiMode(true);
//显示拍照按钮
imagePicker.setShowCamera(true);
//最多选择9张
imagePicker.setSelectLimit(9);
//不进行裁剪
imagePicker.setCrop(false);
Intent intent = new Intent(this, ImageGridActivity.class);
startActivityForResult(intent, 100);
}
Aggregations