Android Open Source - GoCats Sample Activity






From Project

Back to project page GoCats.

License

The source code is released under:

Apache License

If you think the Android project GoCats 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

package org.collegelabs.gocats.app;
//from  w w w .  j a  va 2  s . c o  m
import android.app.Activity;
import android.os.Bundle;
import butterknife.ButterKnife;

/**
 * Used for testing small bits of code (like finding memory leaks)
 */
public class SampleActivity extends Activity {


    private CatView view;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        view = new CatView(this);
        setContentView(view);

        String squareImg = "http://i.imgur.com/aZaFne4.jpg";
        String rectImg = "http://i.imgur.com/0Regu2A.jpg";

        view.setMetaData(new ImageMetaData(squareImg, "Hi", "Test", "nope", "id"));
    }

    @Override
    protected void onStop() {
        super.onStop();
        view.RemoveCallback();
    }
}




Java Source Code List

com.jakewharton.salvage.RecycleBin.java
com.jakewharton.salvage.RecyclingPagerAdapter.java
go.Go.java
go.Seq.java
go.libcats.Libcats.java
org.collegelabs.gocats.app.ApplicationTest.java
org.collegelabs.gocats.app.BaseApplication.java
org.collegelabs.gocats.app.CatPagerAdapter.java
org.collegelabs.gocats.app.CatView.java
org.collegelabs.gocats.app.ImageInfo.java
org.collegelabs.gocats.app.ImageMetaData.java
org.collegelabs.gocats.app.MainActivity.java
org.collegelabs.gocats.app.SampleActivity.java