use of com.xabber.android.ui.color.BarPainter 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);
}
use of com.xabber.android.ui.color.BarPainter in project xabber-android by redsolution.
the class PushLogActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_server_info);
Toolbar toolbar = ToolbarHelper.setUpDefaultToolbar(this, getString(R.string.push_log_title));
BarPainter barPainter = new BarPainter(this, toolbar);
barPainter.setDefaultColor();
toolbar.inflateMenu(R.menu.toolbar_log);
toolbar.setOnMenuItemClickListener(this);
RecyclerView recyclerView = findViewById(R.id.server_info_recycler_view);
serverInfoAdapter = new ServerInfoAdapter();
recyclerView.setLayoutManager(new LinearLayoutManager(this));
recyclerView.setAdapter(serverInfoAdapter);
ProgressBar progressBar = findViewById(R.id.server_info_progress_bar);
progressBar.setVisibility(View.GONE);
}
use of com.xabber.android.ui.color.BarPainter in project xabber-android by redsolution.
the class ContactAddActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_with_toolbar_progress_and_container);
toolbar = ToolbarHelper.setUpDefaultToolbar(this, null, R.drawable.ic_clear_white_24dp);
toolbar.inflateMenu(R.menu.toolbar_add_contact);
toolbar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() {
@Override
public boolean onMenuItemClick(MenuItem item) {
return onOptionsItemSelected(item);
}
});
progressBar = findViewById(R.id.toolbarProgress);
barPainter = new BarPainter(this, toolbar);
barPainter.setDefaultColor();
Intent intent = getIntent();
if (savedInstanceState == null) {
getFragmentManager().beginTransaction().add(R.id.fragment_container, ContactAddFragment.newInstance(getAccount(intent), getUser(intent))).commit();
}
}
Aggregations