use of com.bilibili.boxing.impl.BoxingGlideLoader 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);
}
Aggregations