1, please modify the Styles.xml, will
<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>
Modified to:
<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, please modify the Bubbletextview.java Applyfromshortcutinfo method, will
Setcompounddrawablepadding ((int) ((GRID.FOLDERICONSIZEPX-GRID.ICONSIZEPX)/2f));
The parameters in this line of code are changed to a suitable value.
3, please modify the Pagedviewicon.java Applyfromapplicationinfo method, as follows:
public void Applyfromapplicationinfo (AppInfo info, Boolean scaleup,
Pagedviewicon.pressedcallback CB) {
Micon = Info.iconbitmap;
Mpressedcallback = CB;
Setcompounddrawableswithintrinsicbounds (NULL, utilities.createicondrawable (MICON), NULL, NULL);
Setcompounddrawablepadding (xxxx);//Add (xxxx Please adjust itself to the appropriate value)
SetText (Info.title);
Settag (info);
}
How Android will display a long icon name for the desktop and main menu full