Merge "Fix measure performance of whole status bar window."
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<com.android.systemui.statusbar.policy.HeadsUpNotificationView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="@dimen/notification_panel_width"
|
||||
android:layout_width="match_parent"
|
||||
android:id="@+id/content_holder"
|
||||
android:background="@drawable/notification_panel_bg"
|
||||
/>
|
||||
@@ -22,7 +22,7 @@
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
|
||||
android:id="@+id/notification_panel"
|
||||
android:layout_width="0dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
>
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
<com.android.systemui.statusbar.phone.NotificationsQuickSettingsContainer
|
||||
android:id="@+id/notification_container_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:clipToPadding="false"
|
||||
android:clipChildren="false">
|
||||
|
||||
|
||||
@@ -35,9 +35,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" >
|
||||
<include layout="@layout/status_bar_expanded"
|
||||
android:layout_width="@dimen/notification_panel_width"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_gravity="start|top" />
|
||||
style="@style/StatusBarExpanded" />
|
||||
</com.android.systemui.statusbar.phone.PanelHolder>
|
||||
|
||||
</com.android.systemui.statusbar.phone.StatusBarWindowView>
|
||||
|
||||
@@ -18,4 +18,10 @@
|
||||
<style name="BrightnessDialogContainer" parent="@style/BaseBrightnessDialogContainer">
|
||||
<item name="android:layout_width">480dp</item>
|
||||
</style>
|
||||
|
||||
<style name="StatusBarExpanded">
|
||||
<item name="android:layout_width">@dimen/notification_panel_width</item>
|
||||
<item name="android:layout_height">match_parent</item>
|
||||
<item name="android:layout_gravity">start|top</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
@@ -196,9 +196,6 @@
|
||||
<!-- Quick Settings CA Cert Warning tile geometry: gap between icon and text -->
|
||||
<dimen name="qs_cawarn_tile_margin_below_icon">3dp</dimen>
|
||||
|
||||
<!-- The width of the notification panel window: match_parent below sw600dp -->
|
||||
<dimen name="notification_panel_width">-1dp</dimen>
|
||||
|
||||
<!-- used by DessertCase -->
|
||||
<dimen name="dessert_case_cell_size">192dp</dimen>
|
||||
|
||||
|
||||
@@ -171,4 +171,10 @@
|
||||
|
||||
<style name="systemui_theme" parent="@android:style/Theme.DeviceDefault" />
|
||||
|
||||
<style name="StatusBarExpanded">
|
||||
<item name="android:layout_width">match_parent</item>
|
||||
<item name="android:layout_height">match_parent</item>
|
||||
<item name="android:layout_gravity">start|top</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -79,8 +79,9 @@ public class StatusBarWindowManager {
|
||||
| WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,
|
||||
PixelFormat.TRANSLUCENT);
|
||||
|
||||
mLp.width = ViewGroup.LayoutParams.MATCH_PARENT;
|
||||
mLp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;
|
||||
mLp.gravity = Gravity.TOP | Gravity.FILL_HORIZONTAL;
|
||||
mLp.gravity = Gravity.TOP;
|
||||
mLp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE;
|
||||
mLp.setTitle("StatusBar");
|
||||
mLp.packageName = mContext.getPackageName();
|
||||
|
||||
Reference in New Issue
Block a user