什么是content_main.xml的机器人工作室1.4中的作用? [英] What is the role of content_main.xml in android studio 1.4?

查看:136
本文介绍了什么是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.

这篇关于什么是content_main.xml的机器人工作室1.4中的作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆