Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

small changes to expose the direct loading demo

  • Loading branch information...
commit e26fed698a0ead05bd4645ca97e1615e9c1ea4bf 1 parent b345cc2
@luigi-agosti luigi-agosti authored
View
3  .gitignore
@@ -11,3 +11,6 @@ release.properties
project.properties
**/project.properties
target
+out
+.idea
+*.iml
View
1  demo/AndroidManifest.xml
@@ -19,6 +19,7 @@
<activity android:name=".activity.BigImages" android:theme="@android:style/Theme.NoTitleBar" />
<activity android:name=".activity.FromCacheOnly" android:theme="@android:style/Theme.NoTitleBar" />
<activity android:name=".activity.DirectLoadingDemo" android:theme="@android:style/Theme.NoTitleBar" />
+
<provider android:name=".provider.ImageLoaderDemoProvider" android:authorities="com.novoda.imageloader.demo" />
<service android:name="com.novoda.imageloader.core.service.CacheCleaner" android:exported="false" android:enabled="true">
<intent-filter>
View
6 demo/res/layout/dashboard.xml
@@ -32,4 +32,10 @@
android:layout_height="wrap_content"
android:text="Big images" />
+ <Button
+ android:id="@+id/direct_loader"
+ android:layout_width="fill_parent"
+ android:layout_height="wrap_content"
+ android:text="Direct loader" />
+
</LinearLayout>
View
5 demo/src/com/novoda/imageloader/demo/activity/Dashboard.java
@@ -7,6 +7,7 @@
import android.view.View.OnClickListener;
import android.widget.Button;
+import com.novoda.imageloader.core.util.DirectLoader;
import com.novoda.imageloader.demo.R;
public class Dashboard extends Activity implements OnClickListener {
@@ -19,6 +20,7 @@ protected void onCreate(Bundle savedInstanceState) {
((Button)findViewById(R.id.long_small_image_list)).setOnClickListener(this);
((Button)findViewById(R.id.from_cache_only)).setOnClickListener(this);
((Button)findViewById(R.id.big_images)).setOnClickListener(this);
+ ((Button)findViewById(R.id.direct_loader)).setOnClickListener(this);
}
@Override
@@ -37,6 +39,9 @@ public void onClick(View view) {
case R.id.big_images:
startActivity(new Intent(Dashboard.this, BigImages.class));
break;
+ case R.id.direct_loader:
+ startActivity(new Intent(Dashboard.this, DirectLoadingDemo.class));
+ break;
default:
break;
}
View
3  demo/src/com/novoda/imageloader/demo/activity/DirectLoadingDemo.java
@@ -28,10 +28,7 @@ protected void onResume() {
new Thread() {
public void run() {
DirectLoader dl = new DirectLoader();
- Log.v("XXXX" , "directLoader resumed");
Bitmap b = dl.download("http://www.asianweek.com/wp-content/uploads/2012/03/microsoft_logo11.jpg");
- Log.v("XXXX" , "bitmap created and isNull? " + (b == null));
- Log.v("XXXX" , "image setted");
setImageView(b);
};
}.start();
Please sign in to comment.
Something went wrong with that request. Please try again.