Android Studio 实现实现学生信息的增删改查 -源代码 四(Servlet + 连接MySql数据库)

xmlns:android=“http://schemas.android.com/apk/res/android”

xmlns:app=“http://schemas.android.com/apk/res-auto”

xmlns:tools=“http://schemas.android.com/tools”

android:layout_width=“match_parent”

android:layout_height=“match_parent”

android:padding=“10dp”

<LinearLayout

android:layout_width=“match_parent”

android:layout_height=“wrap_content”

android:gravity=“center”

android:orientation=“horizontal”>

<TextView

android:id=“@+id/id”

android:layout_width=“wrap_content”

android:layout_height=“wrap_content”

android:layout_marginLeft=“5dp”

android:layout_weight=“1”

android:text=“id” />

<TextView

android:id=“@+id/name”

android:layout_width=“wrap_content”

android:layout_height=“wrap_content”

android:layout_marginLeft=“5dp”

android:layout_weight=“1”

android:text=“姓名” />

<TextView

android:id=“@+id/age”

android:layout_width=“wrap_content”

android:layout_height=“wrap_content”

android:layout_marginLeft=“5dp”

android:layout_weight=“1”

android:text=“年龄” />

<TextView

android:id=“@+id/address”

android:layout_width=“wrap_content”

android:layout_height=“wrap_content”

android:layout_marginLeft=“5dp”

android:layout_weight=“1”

android:text=“地址” />

<LinearLayout

android:layout_width=“wrap_content”

android:layout_height=“wrap_content”

android:layout_marginLeft=“10dp”

android:layout_weight=“1”

android:layout_gravity=“right”

android:orientation=“horizontal”>

<Button

android:id=“@+id/button”

android:layout_width=“70dp”

android:layout_height=“wrap_content”

android:layout_marginLeft=“10dp”

android:layout_gravity=“right”

android:layout_weight=“1”

android:textSize=“15sp”

android:text=“修改” />

<Button

android:id=“@+id/button4”

android:layout_width=“70dp”

android:layout_height=“wrap_content”

android:layout_gravity=“right”

android:layout_weight=“1”

android:textSize=“15sp”

android:text=“删除” />

2、添加表头的xml,创建list_header.xml

在这里插入图片描述

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout

xmlns:android=“http://schemas.android.com/apk/res/android”

xmlns:app=“http://schemas.android.com/apk/res-auto”

xmlns:tools=“http://schemas.android.com/tools”

android:layout_width=“match_parent”

android:layout_height=“match_parent”

android:padding=“10dp”

<LinearLayout

android:layout_width=“match_parent”

<
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值