@Override
 public void onCreate() {
   super.onCreate();
   Binder.init(this);
   ImageLoaderConfiguration config =
       new ImageLoaderConfiguration.Builder(getApplicationContext())
           .threadPriority(Thread.NORM_PRIORITY - 2)
           .denyCacheImageMultipleSizesInMemory()
           .diskCacheFileNameGenerator(new Md5FileNameGenerator())
           .diskCacheSize(50 * 1024 * 1024)
           // 50 Mb
           .tasksProcessingOrder(QueueProcessingType.LIFO)
           .writeDebugLogs() // Remove for release app
           .build();
   // Initialize ImageLoader with configuration.
   ImageLoader.getInstance().init(config);
 }
コード例 #2
0
 @Override
 public void onCreate() {
   super.onCreate();
   Binder.init(this);
 }
コード例 #3
0
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   ViewModel vm = new ProfileViewModel(this);
   Binder.init(this.getApplication());
   Binder.setAndBindContentView(this, R.layout.profile, vm);
 }