-2

I am new to android development and I want to make an app that is almost immersive. Does android let you remove the toolbar and use only the tabs?

jsonkile
  • 1
  • 1
  • 1
    yes, ActionBar/Toolbar is optional ... why didn't just tried – Selvin May 22 '17 at 14:27
  • 1
    Possible duplicate of [How to hide the title bar for an Activity in XML with existing custom theme](https://stackoverflow.com/questions/2591036/how-to-hide-the-title-bar-for-an-activity-in-xml-with-existing-custom-theme) – stamanuel May 22 '17 at 14:28

1 Answers1

0

Yes, android.support.v7.widget.Toolbar is optional. You can remove it anytime from your layout.

If you don't want to use Toolbar then just use TabLayout in your layout XML:

<android.support.design.widget.TabLayout
    android:id="@+id/tabs"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:tabIndicatorColor="#ff4938"/>

Hope this will help~

Ferdous Ahamed
  • 21,438
  • 5
  • 52
  • 61