Android Open Source - Patio Patio Thumbnail






From Project

Back to project page Patio.

License

The source code is released under:

MIT License

If you think the Android project Patio 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 com.andressantibanez.android.patio;
/*ww w .j  a  v a 2  s .  c  o m*/
import android.widget.ImageView;

public class PatioThumbnail {
    private String mThumbnailPath;
    private ImageView mThumbnailView;

    public PatioThumbnail(String thumbnailPath, ImageView thumbnailView) {
        mThumbnailPath = thumbnailPath;
        mThumbnailView = thumbnailView;
    }

    public String getThumbnailPath() {
        return mThumbnailPath;
    }

    public ImageView getThumbnailView() {
        return mThumbnailView;
    }

    public void setSelected(boolean selected) {
        getThumbnailView().setSelected(selected);
        if(selected) {
            getThumbnailView().setAlpha(0.5f);
        } else {
            getThumbnailView().setAlpha(1.0f);
        }
    }

    public boolean isSelected() {
        return getThumbnailView().isSelected();
    }
}




Java Source Code List

com.andressantibanez.android.patio.ApplicationTest.java
com.andressantibanez.android.patio.PatioThumbnail.java
com.andressantibanez.android.patio.PatioUtils.java
com.andressantibanez.android.patio.Patio.java
com.asantibanez.android.patiodemo.ApplicationTest.java
com.asantibanez.android.patiodemo.MainActivity.java