Android XML

android:id="@+id/button1" add button1`s id to R.java

In common the xml is mark language like html.
the configure info is in first mark label

<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="1" />
and end with "/>" or with end label "</Button>"

there are some mark:
id: id
layout_width="warp_content" or "match_parent"
every label has it`s attributes ,we can set these
attributes in first label.

Android XML,,5-wow.com

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。