activity_main
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/activity_main" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" tools:context="com.example.mysqlite.MainActivity"> <EditText android:layout_width="match_parent" android:textSize="20sp" android:hint="请输入id" android:id="@+id/id_et" android:layout_height="wrap_content" /> <EditText android:layout_width="match_parent" android:textSize="20sp" android:hint="请输入姓名" android:id="@+id/name_et" android:layout_height="wrap_content" /> <EditText android:layout_width="match_parent" android:textSize="20sp" android:hint="请输入年龄" android:inputType="phone" android:id="@+id/age_et" android:layout_height="wrap_content" /> <EditText android:layout_width="match_parent" android:textSize="20sp" android:hint="请输入性别" android:id="@+id/sex_et" android:layout_height="wrap_content" /> <LinearLayout android:layout_width="match_parent" android:orientation="horizontal" android:layout_height="wrap_content"> <Button android:layout_weight="1"