I managed to fill the toolbar_item within the toolbar by adding another 
LinearLayout inside of the toolbar.xml:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android";
   android:layout_width="match_parent"
   android:layout_height="@dimen/toolbar_height"
   android:layout_centerVertical="true"
   android:orientation="horizontal"
   android:background="@color/separator" >

   <LinearLayout
      android:id="@+id/toolbar"
      android:layout_width="match_parent"
      android:layout_height="match_parent" />

</RelativeLayout>

So I essentially add the toolbar items within the LinearLayout, and it 
enables me to match the height and width of the parent. Even though this 
works, I'm still boggled as to why this way works, and not my original way. 
The only problem now is that I get a little padding around the items.

Any ideas as to why this way works?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to