什么是content_main.xml的机器人工作室1.4中的作用?
今天更新我的机器人工作室最新版本的是Android studio1.4.Here默认情况下,在新的项目显示content_main.xml布局文件夹,这样我无法找到什么使用该文件。
Today I update my android studio to latest version that is android studio1.4.Here by default in new project showing content_main.xml in layout folder so i am unable to find what is the use of this file.
据机器人工作室新的设计模式 activity_main.xml
将决定的外观主要活动
应。而在另一方面, content_main.xml
将决定 activity_main.xml
的内容。这就是 content_main.xml
将包含的TextView,EditText上,按钮等组件。而 content_main.xml
将被包括在activity_main.xml。
According to new design pattern in android studio activity_main.xml
will determine how the look of the main activity
should be. And on the other hand content_main.xml
will determine the contents in the activity_main.xml
. That is content_main.xml
will contain the textview, edittext, button etc component. And the content_main.xml
will be included by the activity_main.xml .
因此,我们可以认为content_main.xml就像部分在HTML中。 activity_main.xml将包含您的活动全球设计和content_main.xml的内容。
So we can think of content_main.xml just like partial in HTML. activity_main.xml will contain your activity global design, and content_main.xml the contents.