2

Updated :Its not duplicate question

I tried many solution for remove blank ,margin or space or shadow from left and right side but its not work for me.

Here is my screen

Here is my xml code

<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/backgroundColor"
    tools:context=".activities.MainActivity">

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

        <android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?android:attr/actionBarSize"
            android:contentInsetEnd="0dp"
            android:contentInsetLeft="0dp"
            android:contentInsetRight="0dp"
            android:contentInsetStart="0dp"
            android:supportsRtl="false"
            app:contentInsetEnd="0dp"
            app:contentInsetLeft="0dp"
            app:contentInsetRight="0dp"
            app:contentInsetStart="0dp"
            app:popupTheme="@style/AppTheme.PopupOverlay">

            <include layout="@layout/header_one_layout" />
        </android.support.v7.widget.Toolbar>
    </android.support.design.widget.AppBarLayout></android.support.design.widget.CoordinatorLayout>

and i also tried below solution

Toolbar toolbar;
    toolbar = (Toolbar) findViewById(R.id.toolbar);
    toolbar.setPadding(0, 0, 0, 0);


    toolbar.setContentInsetsAbsolute(0, 0); //padding programmatically
    setSupportActionBar(toolbar);

I want to put shadow or elevation in bottom so i'm not use app:elevation="0dp"

any help will appreciate , thank you in advance.

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Mr. Ad
  • 333
  • 3
  • 12

0 Answers0