Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid: ActionBar (Android support library)
    primarykey
    data
    text
    <p>i have a problem with ActionBarCompat (from support library). I have no idea how I can add a few buttons on ActionBar where I drew black circle (on screenshot) together with menu in the left of the screen.</p> <p>Please, I need help!</p> <p><img src="https://i.stack.imgur.com/2Hx3g.png" alt="enter image description here"></p> <p>Code of menu in ActionBar in the left of the screen.</p> <pre><code> private DrawerLayout mDrawerLayout; private ListView mDrawer; private ActionBarHelper mActionBar; private ActionBarDrawerToggle mDrawerToggle; ... linearLayout = (LinearLayout)findViewById(R.id.fragment_container); linearLayout.setId(LAYOUT_ID); mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout); mDrawer = (ListView) findViewById(R.id.left_drawer); mDrawerLayout.setDrawerListener(new DDrawerListener()); mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START); ... fragments = new Fragment[NUMBER_OF_TABS]; mDrawer.setAdapter(new CustomAdapter(this)); mDrawer.setOnItemClickListener(new DrawerItemClickListener()); android.support.v7.app.ActionBar actionBar = getSupportActionBar(); actionBar.setBackgroundDrawable(getResources().getDrawable(R.drawable.tab)); actionBar.setDisplayHomeAsUpEnabled(true); mActionBar = createActionBarHelper(); mActionBar.init(); mDrawer.setBackgroundColor(Color.parseColor("#e5c391")); mDrawer.setCacheColorHint(Color.parseColor("#e5c391")); initArrays(this); mDrawerToggle = new ActionBarDrawerToggle (this, mDrawerLayout,R.drawable.ic_drawer,R.string.app_drawer_open, R.string.app_drawer_close); if (savedInstanceState == null) { addFragment(0); } </code></pre> <p>Welcome other ways too =) Thank you! Happy New Year!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload