How does android display a complete desktop icon name (the icon name of some apps is too long), androidapp
1. Find the corresponding res resource, modify styles. xml, and set
<Style name = "WorkspaceIcon. Portrait">
<Item name = "android: drawablePadding"> 0dp </item>
<Item name = "android: paddingLeft"> 4dp </item>
<Item name = "android: paddingRight"> 4dp </item>
<Item name = "android: paddingTop"> @ dimen/app_icon_padding_top </item>
<Item name = "android: paddingBottom"> 4dp </item>
<Item name = "android: textSize"> 13sp </item>
</Style>
Changed:
<Style name = "WorkspaceIcon. Portrait">
<Item name = "android: drawablePadding"> 0dp </item>
<Item name = "android: paddingLeft"> 4dp </item>
<Item name = "android: paddingRight"> 4dp </item>
<Item name = "android: paddingTop"> @ dimen/app_icon_padding_top </item>
<Item name = "android: paddingBottom"> 4dp </item>
<Item name = "android: textSize"> 13sp </item>
<Item name = "android: singleLine"> false </item>
<Item name = "android: lines"> 2 </item>
</Style>
2. Modify the applyFromShortcutInfo method of BubbleTextView. java
SetCompoundDrawablePadding (int) (grid. folderIconSizePx-grid. iconSizePx)/2f ));
In this line of code, the parameter size is adjusted to the appropriate value.