Merge "Fix bug 5594320 - Overlay action bar decor layout causes two measure passes" into ics-mr1
This commit is contained in:
@@ -19,6 +19,8 @@ This is an optimized layout for a screen with the Action Bar enabled.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:fitsSystemWindows="true">
|
||||
<com.android.internal.widget.ActionBarContainer android:id="@+id/action_bar_container"
|
||||
|
||||
@@ -19,38 +19,45 @@ This is an optimized layout for a screen with
|
||||
the Action Bar enabled overlaying application content.
|
||||
-->
|
||||
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true">
|
||||
<FrameLayout android:id="@android:id/content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
<com.android.internal.widget.ActionBarContainer android:id="@+id/action_bar_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="?android:attr/actionBarStyle"
|
||||
android:gravity="top">
|
||||
<com.android.internal.widget.ActionBarView
|
||||
android:id="@+id/action_bar"
|
||||
<LinearLayout android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="top">
|
||||
<com.android.internal.widget.ActionBarContainer android:id="@+id/action_bar_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="?android:attr/actionBarStyle" />
|
||||
<com.android.internal.widget.ActionBarContextView
|
||||
android:id="@+id/action_context_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
style="?android:attr/actionModeStyle" />
|
||||
</com.android.internal.widget.ActionBarContainer>
|
||||
<ImageView android:src="?android:attr/windowContentOverlay"
|
||||
android:scaleType="fitXY"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/action_bar_container" />
|
||||
android:layout_alignParentTop="true"
|
||||
style="?android:attr/actionBarStyle"
|
||||
android:gravity="top">
|
||||
<com.android.internal.widget.ActionBarView
|
||||
android:id="@+id/action_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
style="?android:attr/actionBarStyle" />
|
||||
<com.android.internal.widget.ActionBarContextView
|
||||
android:id="@+id/action_context_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
style="?android:attr/actionModeStyle" />
|
||||
</com.android.internal.widget.ActionBarContainer>
|
||||
<ImageView android:src="?android:attr/windowContentOverlay"
|
||||
android:scaleType="fitXY"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/action_bar_container" />
|
||||
</LinearLayout>
|
||||
<com.android.internal.widget.ActionBarContainer android:id="@+id/split_action_bar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_gravity="bottom"
|
||||
style="?android:attr/actionBarSplitStyle"
|
||||
android:visibility="gone"
|
||||
android:gravity="center"/>
|
||||
</RelativeLayout>
|
||||
</FrameLayout>
|
||||
|
||||
@@ -22,6 +22,8 @@ enabled.
|
||||
-->
|
||||
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true"
|
||||
android:orientation="vertical">
|
||||
<ViewStub android:id="@+id/action_mode_bar_stub"
|
||||
|
||||
@@ -21,6 +21,8 @@ enabled.
|
||||
-->
|
||||
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:fitsSystemWindows="true">
|
||||
<FrameLayout
|
||||
android:id="@android:id/content"
|
||||
|
||||
Reference in New Issue
Block a user