I am new to android development. I am working on a small project, The title of the app is supposed to be in the center and a textview on the left side of the action bar.
I would like to know if the approach is correct. 1. I have hidden the actionbar using
ActionBar actionBar = getSupportActionBar();
actionBar.hide();
2.I Developed a layout to replace the actionbar like this
So is this the correct was of doing it ? If not, what's the correct way ?
Your way is correct but please go through the Slidenerd Material design tutorial. You can create your own toolbar with your specification.Following site help you: Slidenerd toolbar tutorial