Home Button Not Shown When Using The Design Support Library
In my app, I'm displaying a Toolbar with the home button visible. In some screens this works as an up button, in others not. That works fine. Problem is that when importing the des
Solution 1:
I personnaly get the Toolbar
then set it as ActionBar
and use the regular methods and it works for me.
Hope it helps you:
finalToolbartoolbar= (Toolbar) view.findViewById(R.id.toolBar);
toolbar.setTitle(R.string.foo);
toolbar.setNavigationIcon(R.drawable.bar);
setSupportActionBar(toolbar);
getSupportActionBar().setDisplayShowHomeEnabled(true);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
Baca Juga
Post a Comment for "Home Button Not Shown When Using The Design Support Library"