首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

查api 丫丫丫,该如何解决

2012-03-17 
查api 丫丫丫?xml version1.0 encodingutf-8?LinearLayout xmlns:androidhttp://schemas.andro

查api 丫丫丫
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical" >

  <TextView
  android:layout_width="fill_parent"
  android:layout_height="wrap_content"
  android:text="@string/hello" />

  <Button
  android:id="@+id/button"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:text="这是button" />

</LinearLayout>

-----------------
请问这个是mail.xml里面的文件
我想知道<Button
  android:id="@+id/button"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:text="这是button" />
下面这么多属性干嘛的  
于是我查 button 这个类 但是为什么找不到这点属性呢?

[解决办法]
0 0,你要找的是Layout布局
http://www.cnblogs.com/macroxu-1982/archive/2011/03/24/1993982.html
给你找了一个,去看看吧。
这个跟API无关,只是UI布局

热点排行