我是Android开发的新手。我刚刚在main.xml文件中创建了一个按钮。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
<Button
android:text="Click"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
我只是给android:传递整数值,但是出现了错误:error: Error: Integer types not allowed(不允许整数类型)
在这里如何为按钮(Button)指定固定的宽度和高度?另外,android:layout_width 和 android:Width 有什么主要区别?
谢谢。