zoukankan      html  css  js  c++  java
  • 2021.2.19

    今天开始做体温统计

    首先先搭起来一个界面

    必须有注册和登录功能

    今天先做了注册

    package com.example.mymap;

    import androidx.appcompat.app.AppCompatActivity;

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

    public class login extends AppCompatActivity {
        Button button;
        EditText name;
        EditText number;
        EditText phone;
        EditText classname;
        Intent intent = new Intent();
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_login);
            button = findViewById(R.id.login);
            name = findViewById(R.id.name);
            number = findViewById(R.id.number);
            phone = findViewById(R.id.phone);
            classname = findViewById(R.id.classname);
            button.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    loginthread temp = new loginthread();
                    temp.set(number.getText().toString(),name.getText().toString(),phone.getText().toString(),classname.getText().toString());
                    System.out.println("login"+number.getText().toString()+name.getText().toString()+phone.getText().toString()+classname.getText().toString());
                    new Thread(temp).start();
                    System.out.println("success");
                    intent.setClass(login.this,register.class);
                    startActivity(intent);
                }
            });
        }
    }
  • 相关阅读:
    POJMatrix(二维树状数组)
    HD1556Color the ball(树状数组)
    闲的没事,自挂东南枝
    高端、洋气效果
    “绝对”妹纸~position
    float元素一定要闭合
    dw cs6激活码一枚
    shell 预定义变量
    ubuntu 安装docker
    Microsonf visual c++ 14+ 离线内网安装
  • 原文地址:https://www.cnblogs.com/buxiang-Christina/p/14914402.html
Copyright © 2011-2022 走看看