Android Open Source - RecyclingImageLoader Image Grid Activity






From Project

Back to project page RecyclingImageLoader.

License

The source code is released under:

Apache License

If you think the Android project RecyclingImageLoader listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*******************************************************************************
 * Copyright 2013 hellosky ye/*w ww  . j av  a  2s  . c o m*/
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *******************************************************************************/

package com.hellosky.recyclingimageloader;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;

/**
 * Simple FragmentActivity to hold the main {@link ImageGridFragment} and not much else.
 */
public class ImageGridActivity extends FragmentActivity {
    private static final String TAG = "ImageGridActivity";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        if (getSupportFragmentManager().findFragmentByTag(TAG) == null) {
            final FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
            ft.add(android.R.id.content, new ImageGridFragment(), TAG);
            ft.commit();
        }
    }
}




Java Source Code List

com.hellosky.recyclingimageloader.ImageDetailActivity.java
com.hellosky.recyclingimageloader.ImageDetailFragment.java
com.hellosky.recyclingimageloader.ImageGridActivity.java
com.hellosky.recyclingimageloader.ImageGridFragment.java
com.hellosky.recyclingimageloader.Images.java
com.hellosky.recyclingimageloader.SampleActivity.java
com.hellosky.recyclingimageloader.util.ImageFileCache.java
com.hellosky.recyclingimageloader.util.ImageLoader.java
com.hellosky.recyclingimageloader.util.ImageMemoryCache.java
com.hellosky.recyclingimageloader.util.RecyclingBitmapDrawable.java
com.hellosky.recyclingimageloader.util.Utils.java