简体   繁体   English

Android获取资源的过程

[英]Android getting resources process

I would like to know how Android gets its resources like drawables, strings, etc. I know how to do it in program but in my case more of like a diagram. 我想知道Android如何获取其资源(如可绘制对象,字符串等)。我知道如何在程序中进行操作,但就我而言,更像是一个图。 I have searched in the android website but most of are codes. 我在android网站上进行了搜索,但是大多数都是代码。 I just want a simple diagram not a complex one. 我只想要一个简单的图表而不是一个复杂的图表。

My simple example would be a user searches in the edittext (flagname) and then displays the corresponding image of flag on imageview. 我的简单示例是用户搜索edittext(标志名),然后在imageview上显示标志的相应图像。 I need this for my school presentation please help me. 我的学校演讲需要这个,请帮助我。 My approach: 我的方法:

[Text] -> [Android Resources] -> [Drawables] -> ????? Corresponding Image Resource Name

Here is a detailed explanation on how resources are accessed. 这是有关如何访问资源的详细说明。 Hope this helps you in creating your diagram. 希望这有助于您创建图表。

Accessing Resources 访问资源

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM