use of com.bilibili.boxing.impl.BoxingFrescoLoader in project boxing by Bilibili.
the class MainActivity method onOptionsItemSelected.
@Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
IBoxingMediaLoader loader;
switch(id) {
case R.id.menu_fresco:
loader = new BoxingFrescoLoader(this);
break;
case R.id.menu_glide:
loader = new BoxingGlideLoader();
break;
case R.id.menu_picasso:
loader = new BoxingPicassoLoader();
break;
default:
loader = new BoxingFrescoLoader(this);
break;
}
BoxingMediaLoader.getInstance().init(loader);
return super.onOptionsItemSelected(item);
}
use of com.bilibili.boxing.impl.BoxingFrescoLoader in project boxing by Bilibili.
the class BoxingApplication method onCreate.
@Override
public void onCreate() {
super.onCreate();
IBoxingMediaLoader loader = new BoxingFrescoLoader(this);
BoxingMediaLoader.getInstance().init(loader);
BoxingCrop.getInstance().init(new BoxingUcrop());
}
Aggregations