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
Asked
Active
Viewed 52 times
-2
-
Do you have paddings set on the parent `ViewGroup`? Or margins set on the `Toolbar` itself? – Mike M. Sep 08 '19 at 09:26
-
1Post your layout and your code – Gabriele Mariotti Sep 08 '19 at 09:35
1 Answers
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