Use Toolbar instead of ActionBar.follow below steps to add toolbar:
1.change your app theme to Theme.AppCompat.Light.NoActionBar
2.Goto project structure from File menu,goto library dependencies,add design library and sync your project.
3.Goto your layout where you want to display ActionBar and write below code:
<android.support.v7.widget.Toolbar
android:id="@+id/mytoolbar"
android:layout_width="match_parent"
android:layout_height="56dp"
android:background="@color/pccolor"
android:title="Services"
app:titleTextAppearance="@style/Toolbar.TitleText"
android:elevation="4dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Toolbar Title"
android:layout_gravity="center"
android:id="@+id/toolbar_title" />
</android.support.v7.widget.Toolbar>
4.In the Activity,write as below:
Toolbar mytoolbar=(Toolbar)findViewById(R.id.mytoolbar);
setSupportActionBar(mytoolbar);
To customize your title font:
fontPath = "Fonts/Roboto-Light.ttf";
Typeface tf = Typeface.createFromAsset(getActivity().getAssets(), fontPath);
TextView tv_ins=(TextView)FindViewById(R.id.toolbar_title);
tv_ins.setText("mytitle");
tv_ins.setTypeface(tf);
Try this out Hopes this helps you,if anything wrong please let me know.