Search in sources :

Example 1 with ConferenceSelectFragment

use of com.xabber.android.ui.fragment.ConferenceSelectFragment in project xabber-android by redsolution.

the class ConferenceSelectActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_with_toolbar_and_container);
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar_default);
    toolbar.setNavigationIcon(R.drawable.ic_arrow_left_white_24dp);
    toolbar.setNavigationOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            NavUtils.navigateUpFromSameTask(ConferenceSelectActivity.this);
        }
    });
    toolbar.setTitle(getString(R.string.muc_choose_conference));
    barPainter = new BarPainter(this, toolbar);
    barPainter.setDefaultColor();
    if (savedInstanceState == null) {
        getFragmentManager().beginTransaction().add(R.id.fragment_container, new ConferenceSelectFragment()).commit();
    }
    getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
}
Also used : ConferenceSelectFragment(com.xabber.android.ui.fragment.ConferenceSelectFragment) View(android.view.View) Toolbar(androidx.appcompat.widget.Toolbar) BarPainter(com.xabber.android.ui.color.BarPainter)

Aggregations

View (android.view.View)1 Toolbar (androidx.appcompat.widget.Toolbar)1 BarPainter (com.xabber.android.ui.color.BarPainter)1 ConferenceSelectFragment (com.xabber.android.ui.fragment.ConferenceSelectFragment)1