Fixed Dream complication display cut short.
The solution is to add padding left and right of a complication to provide space for the shadow drawing. Bug: 223639624 Test: manual Change-Id: I14b82cf2d8cd2e8f227a4fc90ece234856eca722
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
android:id="@+id/date_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="@dimen/dream_overlay_complication_shadow_padding"
|
||||
android:gravity="center_horizontal"
|
||||
android:textColor="@android:color/white"
|
||||
android:shadowColor="@color/keyguard_shadow_color"
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
android:id="@+id/weather_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="@dimen/dream_overlay_complication_shadow_padding"
|
||||
android:textColor="@android:color/white"
|
||||
android:shadowColor="@color/keyguard_shadow_color"
|
||||
android:shadowRadius="?attr/shadowRadius"
|
||||
|
||||
@@ -1379,6 +1379,7 @@
|
||||
<dimen name="dream_overlay_complication_weather_text_size">18sp</dimen>
|
||||
<dimen name="dream_overlay_complication_preview_text_size">36sp</dimen>
|
||||
<dimen name="dream_overlay_complication_preview_icon_padding">28dp</dimen>
|
||||
<dimen name="dream_overlay_complication_shadow_padding">2dp</dimen>
|
||||
|
||||
<!-- The position of the end guide, which dream overlay complications can align their start with
|
||||
if their end is aligned with the parent end. Represented as the percentage over from the
|
||||
|
||||
Reference in New Issue
Block a user