LocalResourceListAdapter

public class LocalResourceListAdapter extends ListSelectorAdapter

Adapter to represent folders and files

Fields

mOnChangePathListener

protected OnChangePathListener mOnChangePathListener

mPathAdapter

protected PathAdapter mPathAdapter

mResources

protected List<LocalResourceListItem> mResources

Constructors

LocalResourceListAdapter

public LocalResourceListAdapter()

Methods

getItemCount

public int getItemCount()

getItemId

public long getItemId(int position)

getItemViewResId

protected int getItemViewResId()

getSelectedItems

public List<LocalResourceListItem> getSelectedItems()

getViewHolder

protected ListSelectorAdapter.ViewHolder getViewHolder(View itemView)

onBindViewHolder

public void onBindViewHolder(ListSelectorAdapter.ViewHolder holder, int position)

setCurrentPath

protected void setCurrentPath(File path)

setOnChangePathListener

public void setOnChangePathListener(OnChangePathListener listener)

setPathAdapter

public void setPathAdapter(LinearLayout linearLayout, File path)

setResources

public void setResources(List<LocalResourceListItem> resources)

setSelection

public void setSelection(String path, boolean selection)