Fix lock screen layouts with emergency call buttons.
Fixes http://b/2259529 Partially fixes http://b/2260798 Change-Id: Iabb3f74dc2a331810ae8ff44ebb319fe25d217ef
This commit is contained in:
BIN
core/res/res/drawable-hdpi/btn_default_transparent_normal.9.png
Normal file
BIN
core/res/res/drawable-hdpi/btn_default_transparent_normal.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.4 KiB |
BIN
core/res/res/drawable-mdpi/btn_default_transparent_normal.9.png
Normal file
BIN
core/res/res/drawable-mdpi/btn_default_transparent_normal.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1007 B |
Binary file not shown.
Before Width: | Height: | Size: 982 B |
24
core/res/res/drawable/btn_default_transparent.xml
Normal file
24
core/res/res/drawable/btn_default_transparent.xml
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2008 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:state_pressed="true"
|
||||
android:drawable="@drawable/btn_default_pressed" />
|
||||
<item android:state_focused="true" android:state_enabled="true"
|
||||
android:drawable="@drawable/btn_default_selected" />
|
||||
<item android:state_enabled="true"
|
||||
android:drawable="@drawable/btn_default_transparent_normal" />
|
||||
</selector>
|
@ -136,8 +136,10 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/screenLocked"
|
||||
android:layout_marginTop="24dip"
|
||||
android:layout_marginTop="8dip"
|
||||
android:layout_marginLeft="24dip"
|
||||
android:drawableLeft="@drawable/ic_emergency"
|
||||
style="@style/Widget.Button.Transparent"
|
||||
android:drawablePadding="8dip"
|
||||
/>
|
||||
|
||||
|
@ -128,8 +128,9 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/screenLocked"
|
||||
android:layout_marginTop="24dip"
|
||||
android:layout_marginTop="8dip"
|
||||
android:drawableLeft="@drawable/ic_emergency"
|
||||
style="@style/Widget.Button.Transparent"
|
||||
android:drawablePadding="8dip"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
|
@ -155,10 +155,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/lockscreen_emergency_call"
|
||||
android:textSize="14sp"
|
||||
android:background="@drawable/btn_lock_normal"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
style="@style/Widget.Button.Transparent"
|
||||
android:drawableLeft="@drawable/ic_emergency"
|
||||
android:drawablePadding="8dip"
|
||||
/>
|
||||
@ -174,20 +171,14 @@
|
||||
<Button android:id="@+id/forgotPattern"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="14sp"
|
||||
android:background="@drawable/btn_lock_normal"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
style="@style/Widget.Button.Transparent"
|
||||
android:visibility="invisible"
|
||||
/>
|
||||
<Button android:id="@+id/emergencyCallTogether"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/lockscreen_emergency_call"
|
||||
android:textSize="14sp"
|
||||
android:background="@drawable/btn_lock_normal"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
style="@style/Widget.Button.Transparent"
|
||||
android:drawableLeft="@drawable/ic_emergency"
|
||||
android:drawablePadding="8dip"
|
||||
/>
|
||||
|
@ -165,9 +165,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:text="@string/lockscreen_emergency_call"
|
||||
android:background="@drawable/btn_lock_normal"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
style="@style/Widget.Button.Transparent"
|
||||
android:drawableLeft="@drawable/ic_emergency"
|
||||
android:drawablePadding="8dip"
|
||||
/>
|
||||
@ -190,9 +188,7 @@
|
||||
android:layout_marginLeft="4dip"
|
||||
android:layout_marginRight="2dip"
|
||||
android:text="@string/lockscreen_emergency_call"
|
||||
android:background="@drawable/btn_lock_normal"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
style="@style/Widget.Button.Transparent"
|
||||
android:drawableLeft="@drawable/ic_emergency"
|
||||
android:drawablePadding="8dip"
|
||||
/>
|
||||
@ -204,9 +200,7 @@
|
||||
android:layout_marginBottom="4dip"
|
||||
android:layout_marginLeft="2dip"
|
||||
android:layout_marginRight="4dip"
|
||||
android:background="@drawable/btn_lock_normal"
|
||||
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||
android:textColor="?android:attr/textColorPrimary"
|
||||
style="@style/Widget.Button.Transparent"
|
||||
android:visibility="invisible"
|
||||
/>
|
||||
</LinearLayout>
|
||||
|
@ -237,6 +237,12 @@
|
||||
<item name="android:background">@android:drawable/button_inset</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.Button.Transparent">
|
||||
<item name="android:background">@android:drawable/btn_default_transparent</item>
|
||||
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
|
||||
<item name="android:textColor">@android:color/white</item>
|
||||
</style>
|
||||
|
||||
<style name="Widget.CompoundButton">
|
||||
<item name="android:focusable">true</item>
|
||||
<item name="android:clickable">true</item>
|
||||
|
Reference in New Issue
Block a user