Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicHan committed Oct 25, 2015
1 parent 0cc339c commit 63cb579
Show file tree
Hide file tree
Showing 4 changed files with 527 additions and 1 deletion.
2 changes: 1 addition & 1 deletion UltimateAndroidGradle/ultimateandroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dependencies {
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:support-v4:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.1'

compile 'com.facebook.fresco:fresco:0.8.0'
compile 'com.marshalchen.ultimaterecyclerview:library:0.3.6'
compile 'com.loopj.android:android-async-http:1.4.9'
compile 'com.nineoldandroids:library:2.4.0'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.marshalchen.common;

import android.app.Application;

import com.marshalchen.common.commonUtils.urlUtils.FrescoHelper;
import com.marshalchen.common.commonUtils.urlUtils.ImagePipelineConfigFactory;
import com.marshalchen.common.commonUtils.urlUtils.UniversalImageLoader;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
Expand All @@ -16,6 +19,9 @@ public void onCreate() {
// Create global configuration and initialize ImageLoader with this configuration
ImageLoaderConfiguration config = UniversalImageLoader.getDefaultImageLoaderConfiguration(getApplicationContext());
ImageLoader.getInstance().init(config);

// Initialize Fresco
FrescoHelper.init(getApplicationContext(), ImagePipelineConfigFactory.getImagePipelineConfig(getApplicationContext()));
}

@Override
Expand Down
Loading

0 comments on commit 63cb579

Please sign in to comment.