Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to add picture naming rules to android

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to add picture naming rules in android related knowledge, the content is detailed and easy to understand, the operation is simple and fast, with a certain reference value, I believe you will have something to gain after reading this android article on how to add picture naming rules, let's take a look at it.

After naming, if the naming is wrong, prompt Invalid file name: must contain only [a-z0-9.] according to the system information.

It is known that naming can consist of lowercase letters and numbers and underscores and'.' Consists of and begins with a lowercase letter, that is, it cannot begin with an underscore or a number

2.default and continue are special reserved symbols of Java, which will be translated into Java code by the system. When the picture is named with this name, it will appear.

Invalid symbol: 'default', etc. Error

3. When you drag a picture directly from the outside (a picture that is not properly named), the system will not pop up a naming error as usual.

At this time, the android project will not report an error, but there will be unrecognized problems such as R.id.XXX, because the R file did not generate the corresponding id.

4. There is also one of the biggest headaches when there is a third. There will also be problems that can not be recognized by the id of other controls added later, so when the control id does not recognize it, you can check the picture names in the drawable file.

What is Android? Android is a free and open source operating system based on the Linux kernel, mainly used in mobile devices, such as smartphones and tablets, led and developed by Google and the Open Mobile Alliance.

This is the end of the article on "how to add picture naming rules to android". Thank you for reading! I believe you all have a certain understanding of "how to add picture naming rules to android". If you want to learn more, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report