Keyguard - Update emergency button
Match UX guidance: update colors, margins Bug: 170729566 Test: visual inspection Change-Id: Ie4097b65848203868a5aec4bd29758377257de50
This commit is contained in:
@@ -17,9 +17,8 @@
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="?attr/wallpaperTextColorSecondary">
|
||||
<item android:id="@android:id/background">
|
||||
<shape
|
||||
android:color="@android:color/transparent">
|
||||
<stroke android:width="1dp" android:color="?android:attr/textColorSecondary"/>
|
||||
<shape android:shape="rectangle">
|
||||
<solid android:color="?android:attr/colorAccent"/>
|
||||
<corners android:radius="24dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
@@ -29,4 +28,4 @@
|
||||
<corners android:radius="24dp"/>
|
||||
</shape>
|
||||
</item>
|
||||
</ripple>
|
||||
</ripple>
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
<com.android.keyguard.EmergencyButton
|
||||
android:id="@+id/emergency_call_button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="32dp"
|
||||
android:layout_height="48dp"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:text="@*android:string/lockscreen_emergency_call"
|
||||
style="@style/Keyguard.TextView.EmergencyButton" />
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
android:layout_marginTop="@dimen/keyguard_eca_top_margin"
|
||||
android:gravity="center_horizontal" />
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
||||
@@ -188,6 +188,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
android:layout_marginTop="@dimen/keyguard_eca_top_margin"
|
||||
android:gravity="center_horizontal"/>
|
||||
|
||||
</com.android.keyguard.KeyguardPINView>
|
||||
|
||||
@@ -198,6 +198,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
android:layout_marginTop="@dimen/keyguard_eca_top_margin"
|
||||
android:gravity="center_horizontal"/>
|
||||
|
||||
</com.android.keyguard.KeyguardSimPinView>
|
||||
|
||||
@@ -199,5 +199,6 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
android:layout_marginTop="@dimen/keyguard_eca_top_margin"
|
||||
android:gravity="center_horizontal"/>
|
||||
</com.android.keyguard.KeyguardSimPukView>
|
||||
|
||||
@@ -40,6 +40,8 @@
|
||||
<dimen name="keyguard_security_view_top_margin">8dp</dimen>
|
||||
<dimen name="keyguard_security_view_lateral_margin">36dp</dimen>
|
||||
|
||||
<dimen name="keyguard_eca_top_margin">24dp</dimen>
|
||||
|
||||
<!-- EmergencyCarrierArea overlap - amount to overlap the emergency button and carrier text.
|
||||
Should be 0 on devices with plenty of room (e.g. tablets) -->
|
||||
<dimen name="eca_overlap">-10dip</dimen>
|
||||
|
||||
@@ -23,12 +23,13 @@
|
||||
<item name="android:textSize">@dimen/kg_status_line_font_size</item>
|
||||
</style>
|
||||
<style name="Keyguard.TextView.EmergencyButton" parent="Theme.SystemUI">
|
||||
<item name="android:textColor">?android:attr/textColorSecondary</item>
|
||||
<item name="android:textColor">?android:attr/textColorPrimaryInverse</item>
|
||||
<item name="android:textSize">14dp</item>
|
||||
<item name="android:background">@drawable/kg_emergency_button_background</item>
|
||||
<item name="android:fontFamily">@*android:string/config_headlineFontFamily</item>
|
||||
<item name="android:paddingLeft">12dp</item>
|
||||
<item name="android:paddingRight">12dp</item>
|
||||
<item name="android:stateListAnimator">@null</item>
|
||||
</style>
|
||||
<style name="NumPadKey" parent="Theme.SystemUI">
|
||||
<item name="android:colorControlNormal">?android:attr/colorBackground</item>
|
||||
|
||||
@@ -154,7 +154,7 @@ public class EmergencyButton extends Button {
|
||||
**/
|
||||
public void reloadColors() {
|
||||
int color = Utils.getColorAttrDefaultColor(getContext(),
|
||||
android.R.attr.textColorSecondary);
|
||||
android.R.attr.textColorPrimaryInverse);
|
||||
setTextColor(color);
|
||||
setBackground(getContext()
|
||||
.getDrawable(com.android.systemui.R.drawable.kg_emergency_button_background));
|
||||
|
||||
Reference in New Issue
Block a user