查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布局