-2

I'm adding a toolbar in one activity but the toolbar is placed by giving some space from the top left and right. How can I fill the toolbar completely below the status bar?I have give my output screen

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
laxminarayan1998
  • 838
  • 8
  • 13

1 Answers1

0

Remove the margin if it is set on the toolbar.

ex:-

<android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="?attr/colorPrimary"
        app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
Manoj Kumar
  • 332
  • 1
  • 7