In android, how does one display the complete desktop icon names?

Source: Internet
Author: User

In android, how does one display the complete desktop icon names?

Find the corresponding res resource and modify its styles. xml
<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>


How can I change the icon of a program displayed on the desktop in android development?

It is not enough to change the icon of the drawable folder, because if the icon exists under the drawable-xxx folder, different folders are selected based on the corresponding resolution, therefore, the program may not be selected under your drawable folder. To save trouble, you can delete the icons under other directories or replace the icons under each directory, in this way, the program icons can be correctly displayed on machines with any resolution.

How does android change the desktop icon?

We recommend that you use the replacement method. Instead of modifying

For example, the system will certainly use an image by default. That is the robot. This image will be automatically placed under the res file when you create an android project. Find all the files and overwrite the file with the same name.

There are also many folders with different resolutions each containing this file, which must be overwritten together. Even more details should be overwritten with corresponding resolution files.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.