in your styles.xml add these two lines in your theme , by this you can use tool bar instead of action bar
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
2
solved import this library in my project android