Hey, I have an android support toolbar implementation on my app, My toolbar is set to match parent width. *I want the result as picture number two but with overflow menu like picture number one.*
*This is the layout rendered with overflow menu:* <https://www.facebook.com/photo.php?fbid=10154207364827351&set=pcb.1136909526330210&type=3&relevant_count=2> *This is the layout rendered without overflow menu:* My tool bar XML:: <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/registration_toolbar_background" android:clipToPadding="false" android:minHeight="?attr/actionBarSize" android:theme="@style/MeetzToolBarTheme" android:popupTheme="@style/MeetzPopupTheme" app:contentInsetEnd="0dp" app:contentInsetLeft="0dp" app:contentInsetRight="0dp" app:contentInsetStart="0dp" android:padding="0dp" android:textDirection="locale" android:layoutDirection="locale" android:elevation="@dimen/_25sdp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="start|center_vertical" android:orientation="horizontal"> <LinearLayout android:id="@+id/header_back" style="@style/Widget.AppCompat.Light.ActionButton" android:layout_width="wrap_content" android:layout_height="wrap_content"> <ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="5dp" android:layout_marginRight="5dp" android:background="@null" android:clickable="false" android:src="@drawable/navigate_backward" /> <com.makeramen.roundedimageview.RoundedImageView android:id="@+id/imageViewMeeting" android:layout_width="@dimen/voter_header_image_width" android:layout_height="@dimen/voter_header_image_height" android:background="@null" android:scaleType="centerCrop" android:src="@drawable/missing_image" app:riv_corner_radius="@dimen/meeting_toolbar_image_rounded_corner" app:riv_oval="false" /> </LinearLayout> <LinearLayout android:id="@+id/header_title" style="@style/Widget.AppCompat.Light.ActionButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="end" android:orientation="vertical"> <TextView android:id="@+id/textViewTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="start" android:background="@null" android:gravity="right" android:maxLines="1" android:padding="0dp" android:singleLine="true" android:text="ישיבת ממשלה" android:textColor="@android:color/white" android:textSize="16sp" android:visibility="visible" /> <TextView android:id="@+id/textViewParticipants" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="start" android:background="@null" android:gravity="start" android:maxLines="1" android:singleLine="true" android:text="רותם לוי גיא מלאכי יעל מיכאל ליהוא" android:textColor="@android:color/white" android:textSize="12sp" /> </LinearLayout> </LinearLayout> <include android:id="@+id/meeting_header" layout="@layout/fragment_meeting_header"/> </LinearLayout> </android.support.v7.widget.Toolbar> <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/registration_toolbar_background" android:clipToPadding="false" android:minHeight="?attr/actionBarSize" android:theme="@style/MeetzToolBarTheme" android:popupTheme="@style/MeetzPopupTheme" app:contentInsetEnd="0dp" app:contentInsetLeft="0dp" app:contentInsetRight="0dp" app:contentInsetStart="0dp" android:padding="0dp" android:textDirection="locale" android:layoutDirection="locale" android:elevation="@dimen/_25sdp"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="start|center_vertical" android:orientation="horizontal"> <LinearLayout android:id="@+id/header_back" style="@style/Widget.AppCompat.Light.ActionButton" android:layout_width="wrap_content" android:layout_height="wrap_content"> <ImageButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="5dp" android:layout_marginRight="5dp" android:background="@null" android:clickable="false" android:src="@drawable/navigate_backward" /> <com.makeramen.roundedimageview.RoundedImageView android:id="@+id/imageViewMeeting" android:layout_width="@dimen/voter_header_image_width" android:layout_height="@dimen/voter_header_image_height" android:background="@null" android:scaleType="centerCrop" android:src="@drawable/missing_image" app:riv_corner_radius="@dimen/meeting_toolbar_image_rounded_corner" app:riv_oval="false" /> </LinearLayout> <LinearLayout android:id="@+id/header_title" style="@style/Widget.AppCompat.Light.ActionButton" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="end" android:orientation="vertical"> <TextView android:id="@+id/textViewTitle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="start" android:background="@null" android:gravity="right" android:maxLines="1" android:padding="0dp" android:singleLine="true" android:text="ישיבת ממשלה" android:textColor="@android:color/white" android:textSize="16sp" android:visibility="visible" /> <TextView android:id="@+id/textViewParticipants" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="start" android:background="@null" android:gravity="start" android:maxLines="1" android:singleLine="true" android:text="רותם לוי גיא מלאכי יעל מיכאל ליהוא" android:textColor="@android:color/white" android:textSize="12sp" /> </LinearLayout> </LinearLayout> <include android:id="@+id/meeting_header" layout="@layout/fragment_meeting_header"/> </LinearLayout> </android.support.v7.widget.Toolbar> My header XML: <?xml version="1.0" encoding="utf-8"?> <android.support.percent.PercentRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/meeting_header" android:layout_width="match_parent" android:layout_height="wrap_content" android:layoutDirection="locale" android:textDirection="locale"> <android.support.percent.PercentFrameLayout android:id="@+id/invited_by_layout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:orientation="vertical" app:layout_heightPercent="10%" app:layout_widthPercent="47%"> <ImageView android:id="@+id/invited_by_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top|center" android:src="@drawable/meeting_vote_invited_by" app:layout_marginTopPercent="15%" /> <Components.MZTextView android:id="@+id/textViewInvitedBy" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal|bottom" android:ellipsize="none" android:gravity="center" android:maxLines="1" android:singleLine="true" android:text="הוזמנת עלידי סילבן שלום" android:textColor="@color/meeting_header_text_color" android:textSize="@dimen/_14sdp" app:layout_marginBottomPercent="5%" app:layout_marginTopPercent="4%" app:mz_font="almoni_dl_aaa_700" /> </android.support.percent.PercentFrameLayout> <View android:id="@+id/invited_by_layout_horizontal_separator" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toEndOf="@+id/invited_by_layout" android:layout_toRightOf="@+id/invited_by_layout" android:background="@color/fragment_meeting_header_separator" app:layout_heightPercent="7.7%" app:layout_marginTopPercent="1.5%" app:layout_widthPercent="0.2%" /> <android.support.percent.PercentFrameLayout android:id="@+id/invited_counter_layout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toEndOf="@+id/invited_by_layout_horizontal_separator" android:layout_toRightOf="@+id/invited_by_layout_horizontal_separator" android:orientation="vertical" app:layout_heightPercent="10%" app:layout_widthPercent="29%"> <ImageView android:id="@+id/invited_counter_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top|center" android:src="@drawable/meeting_vote_invited_counter" app:layout_marginTopPercent="15%" /> <Components.MZTextView android:id="@+id/invited_counter" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|center_horizontal" android:gravity="center" android:maxLines="1" android:singleLine="true" android:text="1925" android:textColor="@color/meeting_header_text_color" android:textSize="@dimen/_16sdp" app:layout_marginBottomPercent="5%" app:layout_marginTopPercent="4%" app:mz_font="almoni_dl_aaa_700" /> </android.support.percent.PercentFrameLayout> <View android:id="@+id/invited_counter_layout_horizontal_separator" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toEndOf="@+id/invited_counter_layout" android:layout_toRightOf="@+id/invited_counter_layout" android:background="@color/fragment_meeting_header_separator" app:layout_heightPercent="7.7%" app:layout_marginTopPercent="1.5%" app:layout_widthPercent="0.2%" /> <android.support.percent.PercentFrameLayout android:id="@+id/meeting_vote_chat_layout_outer" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_toEndOf="@+id/invited_counter_layout_horizontal_separator" android:layout_toRightOf="@+id/invited_counter_layout_horizontal_separator" android:orientation="vertical" app:layout_heightPercent="10%" app:layout_widthPercent="24%"> <android.support.percent.PercentFrameLayout android:id="@+id/meeting_vote_chat_layout" android:layout_gravity="center_horizontal" app:layout_heightPercent="100%" app:layout_widthPercent="100%"> <com.balysv.materialripple.MaterialRippleLayout style="@style/MeetzRippleCornerRadiusDark" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="top|center" app:layout_marginTopPercent="15%"> <ImageButton android:id="@+id/chat" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/meeting_vote_chat" /> </com.balysv.materialripple.MaterialRippleLayout> <TextView android:id="@+id/unseen_notification" android:layout_gravity="top" android:background="@drawable/bg_circle_notification_counter" android:gravity="center" android:text="2" android:textColor="@android:color/white" android:textSize="@dimen/_12sdp" android:typeface="sans" app:layout_aspectRatio="110%" app:layout_marginLeftPercent="22%" app:layout_marginStartPercent="22%" app:layout_marginTopPercent="13%" app:layout_widthPercent="18%" /> </android.support.percent.PercentFrameLayout> <Components.MZTextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|center_horizontal" android:gravity="center" android:maxLines="1" android:singleLine="true" android:text="@string/meeting_header_chat" android:textColor="@color/meeting_header_text_color" android:textSize="@dimen/_14sdp" app:layout_marginBottomPercent="5%" app:layout_marginTopPercent="4%" app:mz_font="almoni_dl_aaa_700" /> </android.support.percent.PercentFrameLayout> <Components.MZExpandableTextView android:id="@+id/textViewDescription" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/meeting_header_description" android:layout_below="@+id/meeting_vote_chat_layout_outer" android:alpha="69" android:autoLink="web" android:ellipsize="none" android:focusable="true" android:gravity="start" android:inputType="textMultiLine" android:linksClickable="true" android:maxLines="1" android:scrollbars="vertical" android:text=" שישי הקרוב לכבוד חום יולי אוגוסטשישי הקרוב לכבוד חום יולי אוגוסטשישי הקרוב לכבוד חום יולי אוגוסטשישי הקרוב לכבוד חום יולי אוגוסטשישי הקרוב לכבוד חום יולי אוגוסטשישי הקרוב לכבוד חום יולי אוגוסט" android:textColor="@color/meeting_description_text_color" android:textSize="@dimen/_14sdp" app:mz_font="almoni_dl_aaa_400" app:mz_max_lines="1" android:paddingTop="@dimen/_20sdp" android:paddingLeft="@dimen/_5sdp" android:paddingRight="@dimen/_5sdp" android:layout_marginBottom="@dimen/_5sdp" android:layout_marginRight="@dimen/_5sdp" android:layout_marginLeft="@dimen/_5sdp"/> </android.support.percent.PercentRelativeLayout> -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/e646ccf0-eb67-453f-b2c8-67ad26349559%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

