Android应用程序开发需要XML吗? [英] Is XML required for android app development?
本文介绍了Android应用程序开发需要XML吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道android应用程序通常是用Java构建的。当我在Eclipse中创建一个Android应用程序项目时,我看到有一个XML文件,我知道如果您决定添加图形,这是用于UI或GUI。我是否真的需要学习用于Android应用程序开发的XML,即使它只是基础知识,在Eclipse中,或者Eclipse中的大部分(如果不是全部)在activity_main.xml文件中对其进行排序,您可以在其中拖放小部件?
I know that android applications are commonly built in Java. As I created an Android Application Project in Eclipse, I saw there was a XML file, I know this is for the UI, or GUI if you decide to add graphics. Do I really need to learn XML for android app development, even if its just the basics, in Eclipse, or has Eclipse sorted most if not all of it in the activity_main.xml file where you can drag and drop widgets?
推荐答案
可能你必须学习XML
,因为声明方法是构建GUI的推荐方法
。Eclipse
(ADT
插件,请参阅这里 [ ^ ])可能会为您完成大部分工作(我不知道Android Studio
,但是,但是,你必须知道一点。在任何情况下,XML
都相当简单。
Probably you have to learnXML
as the declarative approach is the recommended way for building theGUI
.Eclipse
(theADT
plugin, see, for instance here[^]) might do the bulk of the work for you (I don't know aboutAndroid Studio
, however) but, nevertheless you have to know it a bit. In any caseXML
is fairly simple.
这篇关于Android应用程序开发需要XML吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文