Search in sources :

Example 1 with LogFilesAdapter

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);
}
Also used : LogFilesAdapter(com.xabber.android.ui.adapter.LogFilesAdapter) LinearLayoutManager(androidx.recyclerview.widget.LinearLayoutManager) Toolbar(androidx.appcompat.widget.Toolbar) BarPainter(com.xabber.android.ui.color.BarPainter)

Aggregations

Toolbar (androidx.appcompat.widget.Toolbar)1 LinearLayoutManager (androidx.recyclerview.widget.LinearLayoutManager)1 LogFilesAdapter (com.xabber.android.ui.adapter.LogFilesAdapter)1 BarPainter (com.xabber.android.ui.color.BarPainter)1