Merge "Wrap shortcuts to second line" into ub-launcher3-rvc-dev am: 027d5a0e8f

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11917348

Change-Id: I7175a6a73aa0070d7d91981b07531f4505f460d5
This commit is contained in:
TreeHugger Robot
2020-06-19 22:01:26 +00:00
committed by Automerger Merge Worker
2 changed files with 9 additions and 5 deletions

View File

@@ -22,7 +22,7 @@
android:theme="@style/PopupItem" >
<com.android.launcher3.BubbleTextView
style="@style/BaseIcon"
style="@style/BaseIconUnBounded"
android:id="@+id/bubble_text"
android:background="?android:attr/selectableItemBackground"
android:gravity="start|center_vertical"
@@ -30,6 +30,7 @@
android:paddingStart="@dimen/deep_shortcuts_text_padding_start"
android:paddingEnd="@dimen/popup_padding_end"
android:textSize="14sp"
android:maxLines="2"
android:textColor="?android:attr/textColorPrimary"
launcher:iconDisplay="shortcut_popup"
launcher:layoutHorizontal="true"

View File

@@ -194,21 +194,24 @@
<item name="disabledIconAlpha">.54</item>
</style>
<!-- Base theme for BubbleTextView and sub classes -->
<style name="BaseIcon" parent="@android:style/TextAppearance.DeviceDefault">
<style name="BaseIconUnBounded" parent="@android:style/TextAppearance.DeviceDefault">
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">match_parent</item>
<item name="android:layout_gravity">center</item>
<item name="android:focusable">true</item>
<item name="android:gravity">center_horizontal</item>
<item name="android:lines">1</item>
<item name="android:textColor">?android:attr/textColorSecondary</item>
<item name="android:defaultFocusHighlightEnabled">false</item>
<!-- No shadows in the base theme -->
<item name="android:shadowRadius">0</item>
</style>
<!-- Base theme for BubbleTextView and sub classes -->
<style name="BaseIcon" parent="BaseIconUnBounded">
<item name="android:lines">1</item>
</style>
<!-- Icon displayed on the workspace -->
<style name="BaseIcon.Workspace" >
<item name="android:shadowRadius">2.0</item>