How to delete margin in my AppBarLayout?

1

Good day.

How could I eliminate margins or spaces?

Thank you in advance

This is the layout of the AppBarLayout

<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
tools:context="com.com.mayorgafirm.saxtant.activity.LeftMenuActivity"
>

<android.support.design.widget.AppBarLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:theme="@style/NavigationViewTheme"
    >

    <android.support.v7.widget.Toolbar
        android:id="@+id/toolbar"
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        app:popupTheme="@style/AppTheme.CustomTheme"/>

</android.support.design.widget.AppBarLayout>

<include layout="@layout/content_main" />

Here the content_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
android:gravity="top">

<FrameLayout
    android:id="@+id/content_login"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"></FrameLayout>

    
asked by devjav 20.01.2017 в 00:16
source

1 answer

0

To be without spaces, define the properties of your toolbar with value 0:

android:contentInsetLeft="0dp"
android:contentInsetStart="0dp"
android:contentInsetRight="0dp"

app:contentInsetLeft="0dp"
app:contentInsetStart="0dp"
android:contentInsetEnd="0dp"
app:contentInsetRight="0dp"
app:contentInsetEnd="0dp" 
    
answered by 20.01.2017 в 00:35