Merge "Global actions visuals - color and ordering changes." into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4a28bbaf8f
@@ -2513,9 +2513,8 @@
|
|||||||
<item>restart</item>
|
<item>restart</item>
|
||||||
<item>lockdown</item>
|
<item>lockdown</item>
|
||||||
<item>logout</item>
|
<item>logout</item>
|
||||||
<item>screenshot</item>
|
|
||||||
<item>bugreport</item>
|
<item>bugreport</item>
|
||||||
<item>users</item>
|
<item>screenshot</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<!-- Number of milliseconds to hold a wake lock to ensure that drawing is fully
|
<!-- Number of milliseconds to hold a wake lock to ensure that drawing is fully
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:shape="rectangle">
|
android:shape="rectangle">
|
||||||
<solid android:color="?android:attr/colorPrimary" />
|
<solid android:color="?android:attr/colorBackgroundFloating" />
|
||||||
<corners
|
<corners
|
||||||
android:bottomLeftRadius="@dimen/corner_size"
|
android:bottomLeftRadius="@dimen/corner_size"
|
||||||
android:topLeftRadius="@dimen/corner_size"
|
android:topLeftRadius="@dimen/corner_size"
|
||||||
|
|||||||
@@ -33,7 +33,9 @@
|
|||||||
android:layout_width="24dp"
|
android:layout_width="24dp"
|
||||||
android:layout_height="24dp"
|
android:layout_height="24dp"
|
||||||
android:layout_gravity="center"
|
android:layout_gravity="center"
|
||||||
android:scaleType="center"/>
|
android:scaleType="center"
|
||||||
|
android:alpha="?android:attr/primaryContentAlpha"
|
||||||
|
/>
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@*android:id/message"
|
android:id="@*android:id/message"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
android:layout_gravity="top|right"
|
android:layout_gravity="top|right"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:padding="12dp"
|
android:padding="16dp"
|
||||||
android:translationZ="8dp" />
|
android:translationZ="9dp" />
|
||||||
|
|
||||||
</com.android.systemui.HardwareUiLayout>
|
</com.android.systemui.HardwareUiLayout>
|
||||||
|
|||||||
@@ -882,7 +882,7 @@
|
|||||||
burn-in on AOD -->
|
burn-in on AOD -->
|
||||||
<dimen name="burn_in_prevention_offset_y">50dp</dimen>
|
<dimen name="burn_in_prevention_offset_y">50dp</dimen>
|
||||||
|
|
||||||
<dimen name="corner_size">16dp</dimen>
|
<dimen name="corner_size">8dp</dimen>
|
||||||
<dimen name="top_padding">0dp</dimen>
|
<dimen name="top_padding">0dp</dimen>
|
||||||
<dimen name="bottom_padding">48dp</dimen>
|
<dimen name="bottom_padding">48dp</dimen>
|
||||||
<dimen name="edge_margin">16dp</dimen>
|
<dimen name="edge_margin">16dp</dimen>
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ public class HardwareBgDrawable extends LayerDrawable {
|
|||||||
: R.drawable.rounded_bg_bottom).mutate(),
|
: R.drawable.rounded_bg_bottom).mutate(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
layers[1].setTint(Utils.getColorAttr(context, android.R.attr.colorPrimaryDark));
|
layers[1].setTint(Utils.getColorAttr(context, android.R.attr.colorPrimary));
|
||||||
return layers;
|
return layers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -877,9 +877,8 @@ class GlobalActionsDialog implements DialogInterface.OnDismissListener,
|
|||||||
public View getView(int position, View convertView, ViewGroup parent) {
|
public View getView(int position, View convertView, ViewGroup parent) {
|
||||||
Action action = getItem(position);
|
Action action = getItem(position);
|
||||||
View view = action.create(mContext, convertView, parent, LayoutInflater.from(mContext));
|
View view = action.create(mContext, convertView, parent, LayoutInflater.from(mContext));
|
||||||
// Power off, restart, logout (if present) and lockdown (if present) should be in white
|
// Everything but screenshot, the last item, gets white background.
|
||||||
// background. Set the division based on which buttons are currently being displayed.
|
if (position == getCount() - 1) {
|
||||||
if (position == 2 + (mHasLogoutButton ? 1 : 0) + (mHasLockdownButton ? 1 : 0)) {
|
|
||||||
HardwareUiLayout.get(parent).setDivisionView(view);
|
HardwareUiLayout.get(parent).setDivisionView(view);
|
||||||
}
|
}
|
||||||
return view;
|
return view;
|
||||||
|
|||||||
Reference in New Issue
Block a user