use of com.bilibili.boxing_impl.ui.BoxingViewFragment in project boxing by Bilibili.
the class TestBlankActivity method onCreate.
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_boxing);
BoxingMediaLoader.getInstance().init(new IBoxingMediaLoader() {
@Override
public void displayThumbnail(@NonNull ImageView img, @NonNull String absPath, int width, int height) {
}
@Override
public void displayRaw(@NonNull ImageView img, @NonNull String absPath, IBoxingCallback callback) {
}
});
BoxingViewFragment fragment = BoxingViewFragment.newInstance();
fragment.setTitleTxt((TextView) findViewById(R.id.pick_album_txt));
fragment.setPresenter(new PickerPresenter(fragment));
fragment.setPickerConfig(new BoxingConfig(BoxingConfig.Mode.MULTI_IMG));
final FragmentManager manager = getSupportFragmentManager();
manager.beginTransaction().add(R.id.content_layout, fragment).commit();
}
Aggregations