首页 > 其他分享 >2023.3.16每日总结

2023.3.16每日总结

时间:2023-03-16 21:57:24浏览次数:31  
标签:总结 studentID 16 et 2023.3 statistics new import android

package com.example.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class statistics extends AppCompatActivity {
    private DBOpenHelper1 dbOpenHelper1;
    private EditText et_DaKa_studentID;
    @SuppressLint("MissingInflatedId")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_statistics);
        Button btn_Check_student=(Button)findViewById(R.id.btn_Check_student);
        et_DaKa_studentID=findViewById(R.id.et_DaKa_studentID);
        dbOpenHelper1=new DBOpenHelper1(statistics.this,"dakaData.db",null,1);
        btn_Check_student.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                String studentID=et_DaKa_studentID.getText().toString();
                int arr1[]=new int[10];
                arr1=dbOpenHelper1.chaxunid(studentID,dbOpenHelper1.getReadableDatabase());
                Bundle b=new Bundle();
                b.putIntArray("arr",arr1);
                Intent intent= new Intent(statistics.this,ShowStatistic.class);
                intent.putExtras(b);
                startActivity(intent);
                statistics.this.finish();
            }
        });
    }
}


<?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"
    tools:context=".statistics"
    android:orientation="vertical"
    >
    <EditText
        android:id="@+id/et_DaKa_studentID"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:hint="请输入需要查询的学生学号"
        android:layout_marginLeft="20dp"
        android:layout_marginRight="20dp"
        android:layout_marginTop="200dp"/>
    <Button
        android:id="@+id/btn_Check_student"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="一键查询"
        android:layout_marginLeft="20dp"
        android:layout_marginRight="20dp"
        android:layout_marginTop="20dp" />

</LinearLayout>

 

 

 

标签:总结,studentID,16,et,2023.3,statistics,new,import,android
From: https://www.cnblogs.com/wllovelmbforever/p/17224305.html

相关文章

  • AS学习日记23.3.16
    今天学习了侧滑界面制作的布局文件写法和java文件的写法,准备之后学跳转实现学习了view和viewgroup了解了安卓中的六大布局:LinearLayout(线性布局),RelativeLayout(相对布......
  • 每日总结-23.3.16
    小眼睛代码ImageVieweye1;//定义控件eye1=findViewById(R.id.eye1);//绑定控件eye1.setImageResource(R.drawable.baseline_remove_red_eye_2......
  • 每日总结 3.16
    今天学习时长没有昨天长,上午工程数学,学习了如何求函数的梯度和海森矩阵的求法,和一些其他的矩阵,并且了解了一种简单的算法,下午体育课高强度运动,进行了激烈的足球对抗,增强了......
  • 2023年3月16日(软件工程日报)
    今天完成第一次个人作业第二阶段,完成相关的查询部分同时完善第一阶段部分内容,书写完使用说明书    ......
  • 2023.3.16结对总结
    今天进行了地铁Javaweb的数据库链接查询类的完成为了完成查询的操作,复习了list集合 ......
  • 16.(行为型模式)java设计模式之责任链模式
    一、什么是责任链模式模式(ChainofResponsibility)客户端发出一个请求,链上的对象都有机会来处理这一请求,而客户端不需要知道谁是具体的处理对象。让多个对象都有机会处......
  • Spring Study-lesson08 使用注解开发-03-16
    第一:使用注解开发必须导入AOP的包加载依赖了。spring-webmvc第二:在使用注解需要导入context约束,增加注解的支持 在beans.xml文件中第三:@component //@component组......
  • 每日总结 3.16
    今天进行了界面的完善,进行了最优线路的更改。  这次可以进行逆时针线路的查看。下面是界面的优化:可以在同一页面显示信息。 可以在页面选择所需要的功能, <%......
  • C语言新冠疫苗信息管理系统[2023-03-16]
    C语言新冠疫苗信息管理系统[2023-03-16]要求采用C语言为基础,设计实现一套新冠疫苗信息管理系统。该系统力求界面友好,人机交互性强,可以实现对疫苗接种信息的日常管理,可以进......
  • 3月16日记录
    计划写中期报告学习项目,并修改学习技术,什么技术不懂?很简单,照着写,改修改形势与政策执行09点34分 很郁闷,开始了15点14分 高了一个多小时的刑事政策15点14分......