use of com.xabber.android.ui.adapter.LogFilesAdapter in project xabber-android by redsolution.
the class LogActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_log);
Toolbar toolbar = ToolbarHelper.setUpDefaultToolbar(this, getString(R.string.debug_log_files_activity_title));
BarPainter barPainter = new BarPainter(this, toolbar);
barPainter.setDefaultColor();
toolbar.inflateMenu(LOG_MENU);
toolbar.setOnMenuItemClickListener(this);
recyclerView = (RecyclerView) findViewById(R.id.activity_log_recycler_view);
logFilesAdapter = new LogFilesAdapter();
recyclerView.setAdapter(logFilesAdapter);
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);
recyclerView.setLayoutManager(linearLayoutManager);
updateFileList(logFilesAdapter);
}
Aggregations