java xml文题

tangshouling0117 2009-12-27 08:20:22
<?xml version="1.0" encoding="utf-8" ?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Button android:id="@+id/button0" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="非洲草原地图:FrameLayout的使用" />
<Button android:id="@+id/button1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="个性化表单:RelativeLayout的使用" />
<Button android:id="@+id/button2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="LinearLayout和RelativeLayout互助使用" />
<Button android:id="@+id/button3" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="整齐的表单:TableLayout的使用" />
</LinearLayout>
分析一下上面的程序 越详细越好
Button android:id="@+id/button1"
其中@是什么作用 用来表示什么
@+id和@id的区别
本人第一次接触xml 还请大家详细解释
如果可以的话留下联系方式
万分感激
...全文
101 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
XML主要是配置和数据存储

这里就是个配置
dzl84394 2009-12-28
  • 打赏
  • 举报
回复
我猜是一种布局,垂直的,里面有几个按钮
ahhh90h 2009-12-28
  • 打赏
  • 举报
回复
学习
laihaibin08 2009-12-28
  • 打赏
  • 举报
回复
不是很懂
学习了。。。
tangshouling0117 2009-12-28
  • 打赏
  • 举报
回复
那为了能看懂上面的程序
我该学习点什么东西呢
tangshouling0117 2009-12-28
  • 打赏
  • 举报
回复
感谢大家的答案 虽然还是不懂
crazylaa 2009-12-28
  • 打赏
  • 举报
回复
命名空间是android,你看看android的相关XML的配置,就知道是什么意思了。
winthesky 2009-12-27
  • 打赏
  • 举报
回复
你说的都不是XML的问题,而是这个xml的解析程序的问题,要看他怎么解析了

62,621

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧