first_activity_layout.XML布局添加一个BUTTON,定义ID,宽,高,文本 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <Button android:id="@+id/button_1" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Button 1" /> </LinearLayout>
android layout.xml add Button1
最新推荐文章于 2024-12-04 14:28:43 发布