Framework adds resource resources such as string resources and pictures

Source: Internet
Author: User

add string on Android frameworks/Base/core/res/res/Add a string to the values, for example, add a string copy code code to the String.xml as follows:<stringName="serviceenabledfor">service was enabled for: </string>also need to be in frameworks/Base/core/res/res/in the values Public.xml file, add a copy code code as follows:<java-symbol type="string"Name="serviceenabledfor"/>add pictures on Android frameworks/Base/core/res/res/drawable-add a picture of List_selector_pressed_holo_dark in hdpi. If you need to use this image in Java, you need to frameworks/Base/core/res/res/the values in the plus copy code code are as follows:<java-symbol type="drawable"Name="List_selector_pressed_holo_dark"/>

Framework adds resource resources such as string resources and pictures

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.