// Path: StupidAdapter.ExpandAdapter/src/com/stupid/method/adapter/expand/XExpadnViewHolder.java
// public abstract class XExpadnViewHolder<T> extends XViewHolder<T> {
// 
// 	/**
// 	 * run in {@link XViewHolder#getView(Object, int, boolean)} after;
// 	 * 
// 	 * @param isLastChild
// 	 *            当前节点是否是最后一个节点
// 	 * @param parentPosition
// 	 *            父节点id
// 	 */
// 	protected abstract void onNodeIsChild(boolean isLastChild,
// 			int parentPosition);
// 
// 	OnXItemClickListener onItemClickListener;
// 	private int parentId;
// 
// 	/**
// 	 * run in {@link XViewHolder#getView(Object, int, boolean)} after;
// 	 * 
// 	 * @param isExpanded
// 	 *            当前节点是否展开
// 	 * @param childCount
// 	 *            子节点数量
// 	 */
// 	protected abstract void onNodeIsParent(boolean isExpanded, int childCount);
// 
// 	public int getParentId() {
// 		return parentId;
// 	}
// 
// 	public void setParentId(int parentId) {
// 		this.parentId = parentId;
// 	}
// }


import android.content.Context;
import android.view.View;
import android.widget.TextView;
import com.stupid.method.adapter.expand.XExpadnViewHolder;
package com.stupid.method.demo.holder;



public class ExpandChild extends XExpadnViewHolder<String> {
	TextView tv;

	@Override
	public View getView() {
		if (super.getView() == null)
			return tv = new TextView(context);
		else
			return super.getView();
	}

	@Override
	public void onCreate(Context arg0) {

	}

	@Override
	protected void onNodeIsChild(boolean arg0, int arg1) {

	}

	@Override
// Path: StupidAdapter.ExpandAdapter/src/com/stupid/method/adapter/expand/XExpadnViewHolder.java
// public abstract class XExpadnViewHolder<T> extends XViewHolder<T> {
// 
// 	/**
// 	 * run in {@link XViewHolder#getView(Object, int, boolean)} after;
// 	 * 
// 	 * @param isLastChild
// 	 *            当前节点是否是最后一个节点
// 	 * @param parentPosition
// 	 *            父节点id
// 	 */
// 	protected abstract void onNodeIsChild(boolean isLastChild,
// 			int parentPosition);
// 
// 	OnXItemClickListener onItemClickListener;
// 	private int parentId;
// 
// 	/**
// 	 * run in {@link XViewHolder#getView(Object, int, boolean)} after;
// 	 * 
// 	 * @param isExpanded
// 	 *            当前节点是否展开
// 	 * @param childCount
// 	 *            子节点数量
// 	 */
// 	protected abstract void onNodeIsParent(boolean isExpanded, int childCount);
// 
// 	public int getParentId() {
// 		return parentId;
// 	}
// 
// 	public void setParentId(int parentId) {
// 		this.parentId = parentId;
// 	}
// }


// Path: StupidDemo/src/com/stupid/method/demo/holder/ExpandChild.java
import android.content.Context;
import android.view.View;
import android.widget.TextView;
import com.stupid.method.adapter.expand.XExpadnViewHolder;

package com.stupid.method.demo.holder;



public class ExpandChild extends XExpadnViewHolder<String> {
	TextView tv;

	@Override
	public View getView() {
		if (super.getView() == null)
			return tv = new TextView(context);
		else
			return super.getView();
	}

	@Override
	public void onCreate(Context arg0) {

	}

	@Override
	protected void onNodeIsChild(boolean arg0, int arg1) {

	}

	@Override
	protected void onNodeIsParent(boolean arg0, int arg1) {