本文整理汇总了Java中com.bilibili.boxing.loader.IBoxingMediaLoader类的典型用法代码示例。如果您正苦于以下问题:Java IBoxingMediaLoader类的具体用法?Java IBoxingMediaLoader怎么用?Java IBoxingMediaLoader使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IBoxingMediaLoader类属于com.bilibili.boxing.loader包,在下文中一共展示了IBoxingMediaLoader类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onOptionsItemSelected
import com.bilibili.boxing.loader.IBoxingMediaLoader; //导入依赖的package包/类
@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);
}
示例2: onCreate
import com.bilibili.boxing.loader.IBoxingMediaLoader; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
IBoxingMediaLoader loader = new BoxingFrescoLoader(this);
BoxingMediaLoader.getInstance().init(loader);
BoxingCrop.getInstance().init(new BoxingUcrop());
}
示例3: onCreate
import com.bilibili.boxing.loader.IBoxingMediaLoader; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
IBoxingMediaLoader loader = new BoxingGlideLoader();
BoxingMediaLoader.getInstance().init(loader);
BoxingCrop.getInstance().init(new BoxingUcrop());
}
示例4: onCreate
import com.bilibili.boxing.loader.IBoxingMediaLoader; //导入依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
appContext = getApplicationContext();
IBoxingMediaLoader loader = new BoxingGlideLoader();
BoxingMediaLoader.getInstance().init(loader);
}
示例5: init
import com.bilibili.boxing.loader.IBoxingMediaLoader; //导入依赖的package包/类
public void init(@NonNull IBoxingMediaLoader loader) {
this.mLoader = loader;
}
示例6: getLoader
import com.bilibili.boxing.loader.IBoxingMediaLoader; //导入依赖的package包/类
public IBoxingMediaLoader getLoader() {
return mLoader;
}