Merge "Revert "Adjusting paddings in ShadeHeader to allow for hover state"" into udc-qpr-dev
This commit is contained in:
@@ -121,12 +121,10 @@ frame when animating QS <-> QQS transition
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/shade_header_system_icons"
|
android:id="@+id/shade_header_system_icons"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/shade_header_system_icons_height"
|
app:layout_constraintHeight_min="@dimen/large_screen_shade_header_min_height"
|
||||||
|
android:layout_height="@dimen/large_screen_shade_header_min_height"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:paddingStart="@dimen/shade_header_system_icons_padding_start"
|
|
||||||
android:paddingEnd="@dimen/shade_header_system_icons_padding_end"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="@id/privacy_container"
|
app:layout_constraintEnd_toEndOf="@id/privacy_container"
|
||||||
app:layout_constraintTop_toTopOf="@id/clock">
|
app:layout_constraintTop_toTopOf="@id/clock">
|
||||||
@@ -134,13 +132,13 @@ frame when animating QS <-> QQS transition
|
|||||||
<com.android.systemui.statusbar.phone.StatusIconContainer
|
<com.android.systemui.statusbar.phone.StatusIconContainer
|
||||||
android:id="@+id/statusIcons"
|
android:id="@+id/statusIcons"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:paddingEnd="@dimen/signal_cluster_battery_padding" />
|
android:paddingEnd="@dimen/signal_cluster_battery_padding" />
|
||||||
|
|
||||||
<com.android.systemui.battery.BatteryMeterView
|
<com.android.systemui.battery.BatteryMeterView
|
||||||
android:id="@+id/batteryRemainingIcon"
|
android:id="@+id/batteryRemainingIcon"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
app:textAppearance="@style/TextAppearance.QS.Status" />
|
app:textAppearance="@style/TextAppearance.QS.Status" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -74,9 +74,6 @@
|
|||||||
<dimen name="large_dialog_width">472dp</dimen>
|
<dimen name="large_dialog_width">472dp</dimen>
|
||||||
|
|
||||||
<dimen name="large_screen_shade_header_height">42dp</dimen>
|
<dimen name="large_screen_shade_header_height">42dp</dimen>
|
||||||
<!-- start padding is smaller to account for status icon margins coming from drawable itself -->
|
|
||||||
<dimen name="shade_header_system_icons_padding_start">11dp</dimen>
|
|
||||||
<dimen name="shade_header_system_icons_padding_end">12dp</dimen>
|
|
||||||
|
|
||||||
<!-- Lockscreen shade transition values -->
|
<!-- Lockscreen shade transition values -->
|
||||||
<dimen name="lockscreen_shade_transition_by_tap_distance">200dp</dimen>
|
<dimen name="lockscreen_shade_transition_by_tap_distance">200dp</dimen>
|
||||||
|
|||||||
@@ -27,9 +27,6 @@
|
|||||||
|
|
||||||
<dimen name="large_screen_shade_header_height">56dp</dimen>
|
<dimen name="large_screen_shade_header_height">56dp</dimen>
|
||||||
|
|
||||||
<!-- it's a bit smaller on 720dp to account for status_bar_icon_horizontal_margin -->
|
|
||||||
<dimen name="shade_header_system_icons_padding_start">10dp</dimen>
|
|
||||||
|
|
||||||
<!-- Biometric Auth pattern view size, better to align keyguard_security_width -->
|
<!-- Biometric Auth pattern view size, better to align keyguard_security_width -->
|
||||||
<dimen name="biometric_auth_pattern_view_size">348dp</dimen>
|
<dimen name="biometric_auth_pattern_view_size">348dp</dimen>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -470,10 +470,6 @@
|
|||||||
<dimen name="large_screen_shade_header_height">48dp</dimen>
|
<dimen name="large_screen_shade_header_height">48dp</dimen>
|
||||||
<dimen name="large_screen_shade_header_min_height">@dimen/qs_header_row_min_height</dimen>
|
<dimen name="large_screen_shade_header_min_height">@dimen/qs_header_row_min_height</dimen>
|
||||||
<dimen name="large_screen_shade_header_left_padding">@dimen/qs_horizontal_margin</dimen>
|
<dimen name="large_screen_shade_header_left_padding">@dimen/qs_horizontal_margin</dimen>
|
||||||
<dimen name="shade_header_system_icons_height">@dimen/large_screen_shade_header_min_height</dimen>
|
|
||||||
<dimen name="shade_header_system_icons_height_large_screen">32dp</dimen>
|
|
||||||
<dimen name="shade_header_system_icons_padding_start">0dp</dimen>
|
|
||||||
<dimen name="shade_header_system_icons_padding_end">0dp</dimen>
|
|
||||||
|
|
||||||
<!-- The top margin of the panel that holds the list of notifications.
|
<!-- The top margin of the panel that holds the list of notifications.
|
||||||
On phones it's always 0dp but it's overridden in Car UI
|
On phones it's always 0dp but it's overridden in Car UI
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
<Constraint android:id="@+id/shade_header_system_icons">
|
<Constraint android:id="@+id/shade_header_system_icons">
|
||||||
<Layout
|
<Layout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="@dimen/shade_header_system_icons_height_large_screen"
|
android:layout_height="@dimen/large_screen_shade_header_min_height"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@id/privacy_container"
|
app:layout_constraintEnd_toStartOf="@id/privacy_container"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
|
|||||||
@@ -131,7 +131,6 @@ constructor(
|
|||||||
private val date: TextView = header.findViewById(R.id.date)
|
private val date: TextView = header.findViewById(R.id.date)
|
||||||
private val iconContainer: StatusIconContainer = header.findViewById(R.id.statusIcons)
|
private val iconContainer: StatusIconContainer = header.findViewById(R.id.statusIcons)
|
||||||
private val mShadeCarrierGroup: ShadeCarrierGroup = header.findViewById(R.id.carrier_group)
|
private val mShadeCarrierGroup: ShadeCarrierGroup = header.findViewById(R.id.carrier_group)
|
||||||
private val systemIcons: View = header.findViewById(R.id.shade_header_system_icons)
|
|
||||||
|
|
||||||
private var roundedCorners = 0
|
private var roundedCorners = 0
|
||||||
private var cutout: DisplayCutout? = null
|
private var cutout: DisplayCutout? = null
|
||||||
@@ -255,14 +254,6 @@ constructor(
|
|||||||
header.paddingRight,
|
header.paddingRight,
|
||||||
header.paddingBottom
|
header.paddingBottom
|
||||||
)
|
)
|
||||||
systemIcons.setPaddingRelative(
|
|
||||||
resources.getDimensionPixelSize(
|
|
||||||
R.dimen.shade_header_system_icons_padding_start
|
|
||||||
),
|
|
||||||
systemIcons.paddingTop,
|
|
||||||
resources.getDimensionPixelSize(R.dimen.shade_header_system_icons_padding_end),
|
|
||||||
systemIcons.paddingBottom
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onDensityOrFontScaleChanged() {
|
override fun onDensityOrFontScaleChanged() {
|
||||||
|
|||||||
Reference in New Issue
Block a user