Search in sources :

Example 1 with AdapterHistory

use of com.clear.adapters.AdapterHistory in project AndroidCleaner by ReguloSarmiento.

the class HistoryActivity method informacionParaListview.

public void informacionParaListview() {
    items.add(new SectionItem(getResources().getString(R.string.browser)));
    items.add(new EntryItem(getResources().getString(R.string.browser), String.valueOf(numeroPaginasVisitadas()) + " Pag", R.drawable.browser));
    items.add(new SectionItem(getResources().getString(R.string.download)));
    items.add(new EntryItem(getResources().getString(R.string.download), espacioDescargas(), R.drawable.downloads));
    items.add(new EntryItem(getResources().getString(R.string.files), espacioArchivos(), R.drawable.list_icon_media_files));
    items.add(new SectionItem(getResources().getString(R.string.aplicacion)));
    items.add(new EntryItem(getResources().getString(R.string.clipboard), tamanoPortapapeles(), R.drawable.clipboard));
    adapter = new AdapterHistory(this, items);
    listview.setAdapter(adapter);
    listview.setOnItemClickListener(this);
}
Also used : SectionItem(com.clear.helpers.SectionItem) AdapterHistory(com.clear.adapters.AdapterHistory) EntryItem(com.clear.helpers.EntryItem)

Aggregations

AdapterHistory (com.clear.adapters.AdapterHistory)1 EntryItem (com.clear.helpers.EntryItem)1 SectionItem (com.clear.helpers.SectionItem)1