Search in sources :

Example 1 with SelectableItemHolder

use of com.unnamed.b.atv.sample.holder.SelectableItemHolder in project AndroidTreeView by bmelnychuk.

the class SelectableTreeFragment method fillFolder.

private void fillFolder(TreeNode folder) {
    TreeNode file1 = new TreeNode("File1").setViewHolder(new SelectableItemHolder(getActivity()));
    TreeNode file2 = new TreeNode("File2").setViewHolder(new SelectableItemHolder(getActivity()));
    TreeNode file3 = new TreeNode("File3").setViewHolder(new SelectableItemHolder(getActivity()));
    folder.addChildren(file1, file2, file3);
}
Also used : SelectableItemHolder(com.unnamed.b.atv.sample.holder.SelectableItemHolder) TreeNode(com.unnamed.b.atv.model.TreeNode)

Aggregations

TreeNode (com.unnamed.b.atv.model.TreeNode)1 SelectableItemHolder (com.unnamed.b.atv.sample.holder.SelectableItemHolder)1