I want the width of my action bar fill all the screen, Im following this tutorial but when I move the width parameters I cant fill all the width of my screen. When I use a default actionBar theme, the actionBar cover all the width of the screen, but when I create one actionBar myself I cant do it, is there anyway? This is the image of what it looks like
Edit 1 It works, the problem was the padding, so I move my both RelativeLayout and ActionBar into another RelativeLayout with this parameters and work really well, moving the second RelativeLayout below my ActionBar
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_height="fill_parent" android:layout_width="fill_parent" tools:context="com.marcelo.notemuevas.MainActivity"> <android.support.v7.widget.Toolbar android:id="@+id/my_toolbar" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="?attr/colorPrimary" android:elevation="4dp" android:theme="@style/ThemeOverlay.AppCompat.ActionBar" app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/> <RelativeLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" android:layout_below="@id/my_toolbar"> </RelativeLayout> </RelativeLayout> 