Android Open Source - AnotherExpandableListView Another Expandable Group






From Project

Back to project page AnotherExpandableListView.

License

The source code is released under:

GNU General Public License

If you think the Android project AnotherExpandableListView 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 es.laux.models;
/*  w  w  w  . j  a va 2s.co  m*/
import java.util.List;

/**
 * Group of items
 */
public class AnotherExpandableGroup {

    // Id of the group
    private long id;
    // List of childs
    private List<AnotherExpandableChild> children;
    // Text of the group
    private String text;
    // Icon of the group, default no icon (-1)
    protected int icon = -1;
    // If true, we must animate
    private boolean animate = false;
    // Is clickable?
    private boolean clickable;

    /**
     * Get and set
     * */
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public List<AnotherExpandableChild> getChildren() {
        return children;
    }

    public void setChildren(List<AnotherExpandableChild> children) {
        this.children = children;
    }

    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public boolean isAnimate() {
        return animate;
    }

    public void setAnimate(boolean animate) {
        this.animate = animate;
    }

    public boolean isClickable() {
        return clickable;
    }

    public void setClickable(boolean clickable) {
        this.clickable = clickable;
    }
}




Java Source Code List

es.laux.AnotherExpandableAdapter.java
es.laux.AnotherExpandableListView.java
es.laux.Resources.java
es.laux.models.AnotherExpandableChild.java
es.laux.models.AnotherExpandableGroup.java