Android使用ListView,DrawerLayout实现简单注册功能界面

news2024/9/22 1:30:59

1.效果展示

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

2.实现

1.主页面activity_main.xml

主页面就是简单的几个TextView和EditText以及单选框组成的一个注册表单。

<?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:orientation="vertical">

    <TextView
        android:layout_marginTop="18sp"
        android:layout_gravity="center"
        android:textSize="33sp"
        android:text="欢迎注册"
        android:textColor="#FFDD0000"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>

    <LinearLayout
        android:layout_marginTop="40sp"
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <TextView
            android:layout_marginLeft="10sp"
            android:textSize="22sp"
            android:text="用户名:"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>

        <EditText
            android:id="@+id/ed_username"
            android:layout_marginLeft="20sp"
            android:layout_width="180sp"
            android:layout_height="wrap_content"/>
    </LinearLayout>

    <LinearLayout
        android:layout_marginTop="8sp"
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <TextView
            android:layout_marginLeft="10sp"
            android:textSize="22sp"
            android:text="密码:"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>

        <EditText
            android:id="@+id/ed_password"
            android:inputType="textPassword"
            android:layout_marginLeft="42sp"
            android:layout_width="180sp"
            android:layout_height="wrap_content"/>
    </LinearLayout>

    <LinearLayout
        android:layout_marginTop="8sp"
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <TextView
            android:layout_marginLeft="10sp"
            android:textSize="22sp"
            android:text="确认密码:"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>

        <EditText
            android:id="@+id/ed_password2"
            android:inputType="textPassword"
            android:layout_width="180sp"
            android:layout_height="wrap_content"/>
    </LinearLayout>

    <LinearLayout
        android:layout_marginTop="8sp"
        android:orientation="horizontal"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <TextView
            android:layout_marginLeft="10sp"
            android:textSize="22sp"
            android:text="性别:"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>

        <RadioGroup
            android:layout_marginLeft="50sp"
            android:id="@+id/radiogroup1"
            android:layout_height="wrap_content"
            android:layout_width="wrap_content"
            android:orientation="horizontal">

            <RadioButton
                android:id="@+id/radiobutton1"
                android:layout_height="wrap_content"
                android:layout_width="match_parent"
                android:text="" />

            <RadioButton
                android:id="@+id/radiobutton2"
                android:layout_height="wrap_content"
                android:layout_width="match_parent"
                android:text="" />
        </RadioGroup>

    </LinearLayout>

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <TextView
            android:layout_marginLeft="10sp"
            android:textSize="22sp"
            android:text="所在地:"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>

        <EditText
            android:id="@+id/ed_addr"
            android:layout_marginLeft="37sp"
            android:layout_width="180sp"
            android:layout_height="wrap_content"/>

    </LinearLayout>


    <Button
        android:id="@+id/signUp_btn"
        android:layout_gravity="center"
        android:layout_marginTop="30sp"
        android:text="注册"
        android:layout_width="350sp"
        android:layout_height="wrap_content"/>
</LinearLayout>

2.MainActivity.java

package com.example.homework;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.graphics.Paint;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;

public class MainActivity extends AppCompatActivity {

    private EditText username;
    private EditText password;
    private EditText password2;
    private RadioButton radiobutton1;
    private RadioButton radiobutton2;
    private EditText addr;
    private Button signUpBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        initListener();
    }

    //从页面2跳转回来的回调方法,即从主页面跳转到页面2,在页面2中选择城市后跳转回主页面时会调用这个方法
    @Override
    protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (requestCode == 1) {
            if (resultCode == 1) {
                String city = data.getStringExtra("city");
                addr.setText(city);
            }
        }
    }

    //这个方法是注册表单提交前的检查,要求输入的用户名、密码等都要规范
    private boolean signUpCheck() {
        String usernameText = this.username.getText().toString().trim();
        if (TextUtils.isEmpty(usernameText)) {
            alert("用户名不能为空!");
            return false;
        }
        String passwordText = this.password.getText().toString().trim();
        if (TextUtils.isEmpty(passwordText) || passwordText.length() < 6 || passwordText.length() > 15) {
            alert("密码不符合规范!");
            return false;
        }
        String password2Text = this.password2.getText().toString().trim();
        if (TextUtils.isEmpty(password2Text) || password2Text.length() < 6 || password2Text.length() > 15) {
            alert("确认密码不符合规范!");
            return false;
        }
        if (!passwordText.equals(password2Text)) {
            alert("两次输入的密码不一致!");
            return false;
        }
        if (!radiobutton1.isChecked() && !radiobutton2.isChecked()) {
            alert("请选择性别!");
            return false;
        }
        String addrText = addr.getText().toString().trim();
        if (TextUtils.isEmpty(addrText)) {
            alert("请选择地区!");
            return false;
        }
        return true;
    }

    //监听器的初始化,在这里绑定事件
    private void initListener() {
        addr.setOnFocusChangeListener(new View.OnFocusChangeListener() {
            @Override
            public void onFocusChange(View view, boolean b) {
                Intent intent = new Intent(MainActivity.this, ListActivity.class);
                startActivityForResult(intent, 1);
            }
        });

        signUpBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                if (signUpCheck()) {
                    alert("注册成功");
                }
            }
        });
    }



    //将弹窗封装成一个方法,便于多次调用,否则每次调用都要new一个AlertDialog,代码冗余
    private void alert(String msg) {
        AlertDialog alertDialog = new AlertDialog.Builder(this)
                //标题
                .setTitle("提示")
                //内容
                .setMessage(msg)
                //图标
                .setIcon(R.mipmap.ic_launcher)
                //选项
                .setPositiveButton("确认", null)
                .create();
        alertDialog.show();
    }

    //视图组件的初始化
    private void initView() {
        username = findViewById(R.id.ed_username);
        password = findViewById(R.id.ed_password);
        password2 = findViewById(R.id.ed_password2);
        addr = findViewById(R.id.ed_addr);
        radiobutton1 = findViewById(R.id.radiobutton1);
        radiobutton2 = findViewById(R.id.radiobutton2);
        signUpBtn = findViewById(R.id.signUp_btn);
    }
}

3.页面2(选择地区的页面)

这里使用了DrawerLayout和ListView,DrawerLayout是一个抽屉效果的布局,他的第一个子元素是默认显示的,第二个子元素一般是设置点击第一个子元素后显示;ListView虽然是已经弃用的组件,但我比较懒,懒得学RecycleView,就将就着用了,他就是一个列表展示的组件。

页面2的xml文件:activity_list.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    >

    <androidx.drawerlayout.widget.DrawerLayout
        android:id="@+id/drawer_layout"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        >

        <ListView
            android:id="@+id/province"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"/>

        <ListView
            android:background="#009EFF"
            android:id="@+id/city"
            android:layout_gravity="start"
            android:choiceMode="singleChoice"
            android:dividerHeight="0dp"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"/>
    </androidx.drawerlayout.widget.DrawerLayout>
</LinearLayout>

页面2的activity:ListActivity.java

package com.example.homework;

import androidx.appcompat.app.AppCompatActivity;
import androidx.drawerlayout.widget.DrawerLayout;

import android.content.Intent;
import android.os.Bundle;
import android.view.Gravity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import android.widget.TextView;

import java.util.ArrayList;
import java.util.List;

public class ListActivity extends AppCompatActivity {

    private List<Bean> provinceData = new ArrayList<>();

    private List<Bean> cityData = new ArrayList<>();

    private final static String[] provinceName = {
            "广西","广东省","四川省","江苏省","陕西省","浙江省"
    };

    private final static String[] guangxi = {
           "南宁","柳州","桂林","河池","梧州","百色","北海","崇左","玉林","防城港","贺州"
    };
    private final static String[] guangdong = {
           "广州","深圳","佛山","东莞","湛江","汕头","珠海","清远","茂名","中山","梅州"
    };
    private final static String[] sichuan = {
            "成都","绵阳","眉山","乐山","自贡","南充","广元","达州","巴中","广安"
    };
    private final static String[] jiangsu = {
            "南京","泰州","苏州","常州","马鞍山","无锡","徐州","南通","连云港","扬州"
    };
    private final static String[] shanxi = {
            "西安","榆林","咸阳","宝鸡","渭南","延安","汉中","安康","商洛","铜川"
    };
    private final static String[] zhejiang = {
            "杭州","宁波","温州","嘉兴","湖州","绍兴","金华","舟山","台州","丽水"
    };
    private ListView cities;
    //这个是页面2中的DrawerLayout
    private DrawerLayout dl;
    private ListView provinces;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_list);
        initView();
        initListView();
        initListener();
    }

    private void initListener() {
        //给省份的每一项绑定单击事件
        provinces.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
 //当点击某个省份项的时候就调用DrawerLayout布局的这个方法,展示隐藏的第二个元素(城市的ListView)
                dl.openDrawer(Gravity.LEFT);
                cities.setAdapter(new CityAdapter(provinceData, ListActivity.this));
                cityData.clear();
                //根据偏移量(选择的省份,展示对应省份的城市)
                switch (i) {
                    case 0:
                        for (String name : guangxi){
                            Bean bean = new Bean();
                            bean.setName(name);
                            cityData.add(bean);
                        }
                        break;
                    case 1:
                        for (String name : guangdong){
                            Bean bean = new Bean();
                            bean.setName(name);
                            cityData.add(bean);
                        }
                        break;
                    case 2:
                        for (String name : sichuan){
                            Bean bean = new Bean();
                            bean.setName(name);
                            cityData.add(bean);
                        }
                        break;
                    case 3:
                        for (String name : jiangsu){
                            Bean bean = new Bean();
                            bean.setName(name);
                            cityData.add(bean);
                        }
                        break;
                    case 4:
                        for (String name : shanxi){
                            Bean bean = new Bean();
                            bean.setName(name);
                            cityData.add(bean);
                        }
                        break;
                    case 5:
                        for (String name : zhejiang){
                            Bean bean = new Bean();
                            bean.setName(name);
                            cityData.add(bean);
                        }
                        break;
                }
                //装配数据到ListView
                cities.setAdapter(new CityAdapter(cityData, ListActivity.this));

            }
        });

        //给城市的每一项绑定也单击事件
        cities.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
                String item = ((TextView)view.findViewById(R.id.tv)).getText().toString();

                Intent intent = new Intent(ListActivity.this, MainActivity.class);
                intent.putExtra("city", item);

                //这里的第一个参数设置的是resultCode(响应码),也是自定义的
                setResult(1, intent);
                //调用finish返回主页面
                finish();
            }
        });
    }

    //初始化省份的ListView
    private void initListView() {
        provinces.setAdapter(new CityAdapter(provinceData, this));
        for (String name : provinceName){
            Bean bean = new Bean();
            bean.setName(name);
            provinceData.add(bean);
        }
        provinces.setAdapter(new CityAdapter(provinceData, this));


    }

    private void initView() {
        cities = findViewById(R.id.city);
        dl = findViewById(R.id.drawer_layout);
        provinces = findViewById(R.id.province);

    }
}
3.1ListVIew的使用

1)首先建一个xml:area_item.xml,这个可以理解为就是ListView列表中的每一项,在这个xml中定义ListView列表中每一项的布局。

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <TextView
        android:id="@+id/tv"
        android:textSize="28sp"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>


</LinearLayout>

比如我这里就是一个TextView,则ListView列表中的每一项/每一个元素都是一个TextView。

图解:

在这里插入图片描述

2)然后要自定义一个适配器

适配器的作用就是将List集合中的数据装配到ListView列表上,例如我这里是List data,其中Bean其实就是一个实体类,用来装载数据的。适配器比较关键的就是getView方法,这个方法的作用就是将List中的数据装配到视图上(ListView),这个方法的实现其实可以直接copy然后来改里面的视图id,想要理解装配过程的话请自行百度哈。

package com.example.homework;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import java.util.List;

public class CityAdapter extends BaseAdapter {

    private List<Bean> data;

    private Context context;

    public CityAdapter(List<Bean> data, Context context) {
        this.data = data;
        this.context = context;
    }

    @Override
    public int getCount() {
        return data.size();
    }

    @Override
    public Object getItem(int i) {
        return null;
    }

    @Override
    public long getItemId(int i) {
        return i;
    }

    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {
        ViewHolder viewHolder;
        if (view == null) {
            view = LayoutInflater.from(context).inflate(R.layout.area_item, viewGroup, false);
            viewHolder = new ViewHolder();
            viewHolder.textView = view.findViewById(R.id.tv);
            view.setTag(viewHolder);
        } else {
            viewHolder = (ViewHolder) view.getTag();
        }
        viewHolder.textView.setText(data.get(i).getName());
        return view;
    }

    private final class ViewHolder {
        TextView textView;
    }


}

Bean.java
package com.example.homework;

public class Bean {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}

3.2页面回传数据

主页面中跳转页面2(选择地区的页面),要使用startActivityForResult方法跳转,其中第一个参数是intent,第二个参数是requestCode(请求码),这个是可以自定义的。

主页面中的跳转代码在这里插入图片描述

主页面中还要定义一个回调方法onActivityResult,这个方法是页面2跳转回来后会执行这个方法,在这里设置页面2选择的城市到视图中。
在这里插入图片描述

在页面2中给每个列表项绑定单击事件,获取到选中的城市,设置到intent中并回传主页面。

在这里插入图片描述

在这里有个坑,如果跳转时那个requestCode和resultCode你使用负值的话,在页面2跳转回主页面的时候是不会调用回调方法onActivityResult的,一定要使用正值,如果使用RESULT_OK那个自带常量的话是不行的,因为这个常量的值是-1,我之前就是使用这个常量作为requestCode和resultCode,导致跳转回主页面的时候一直没有调用回调方法,查资料后才知道了这个问题,希望大家不要踩坑!

更多精彩内容关注博客原站:盐鱼律己

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/61590.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

[附源码]JAVA毕业设计口腔医院网站(系统+LW)

[附源码]JAVA毕业设计口腔医院网站&#xff08;系统LW&#xff09; 目运行 环境项配置&#xff1a; Jdk1.8 Tomcat8.5 Mysql HBuilderX&#xff08;Webstorm也行&#xff09; Eclispe&#xff08;IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持&#xff09;。 项目技术&…

java通过lock实现同步锁

这里我们是一个卖票的演示代码 其实 同步锁 远不止一个synchronized 它本身有一个 加上锁 和释放锁的过程 为了 让我们更好的理解这个过程 JDK5之后 为我们提供了一个单独的锁工具 lock lock是一个接口 他提供了 synchronized 方法 和 更广泛的语句操作 lock方法 获得锁 unl…

【C语言】函数传参与指针理解

文章目录指针与变量注意指针的本质指针和变量的用法函数与传参传变量与传指针的区别传变量与传指针的时机指针与变量 大三&#xff0c;但是C语言。目标&#xff1a;高屋建瓴&#xff0c;深入浅出。 注意 所有人在最开始学C语言的时候&#xff0c;老师都会和你说指针指向一个…

[附源码]JAVA毕业设计课程答疑系统(系统+LW)

[附源码]JAVA毕业设计课程答疑系统&#xff08;系统LW&#xff09; 目运行 环境项配置&#xff1a; Jdk1.8 Tomcat8.5 Mysql HBuilderX&#xff08;Webstorm也行&#xff09; Eclispe&#xff08;IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持&#xff09;。 项目技术&…

LLM.int8()——自适应混合精度量化方法

Paper地址&#xff1a;https://arxiv.org/abs/2208.07339 GitHub链接&#xff1a;GitHub - TimDettmers/bitsandbytes: 8-bit CUDA functions for PyTorch 随着模型参数规模的增加&#xff0c;大模型&#xff08;如GPT-3&#xff0c;OPT-175B等NLP稠密大模型&#xff09;的实际…

某验三代滑块流程分析

一、请求流程 slide-float.html 首先请求了个HTML文本jquery.js 拿回一个jQuery的jsgt.js 拿回gt.js 像是某验的网址信息register-slide?t1669432270469 一个请求、携带时间戳。返回challenge gt等信息gettype.php 获取验证码类型 携带gtfullpage.9.1.0.js 滑块js代码get.php …

【Java开发】 Spring 08 :访问 Web 资源( 借助 RestTemplate 或 WebClient )

web 资源就是运行在服务器上的资源&#xff0c;比如放到 web 下的页面 js 文件、图片、css等&#xff0c;web资源分为静态web资源和动态web资源两类&#xff0c;接下来访问的就是动态资源&#xff08;页面返回的数据是动态的&#xff0c;由后端程序产生&#xff09;&#xff0…

Rust权威指南之编写自动化测试

一. 简述 虽然Rust的类型系统为我们提供了相当多的安全保障&#xff0c;但是还是不足以防止所有的错误。因此&#xff0c;Rust在语言层面内置了编写测试代码、执行自动化测试任务的功能。 测试是一门复杂的技术&#xff0c;本章覆盖关于如何编写优秀测试的每一个细节&#xf…

[LeetCode周赛复盘] 第 322 场周赛20221204

[LeetCode周赛复盘] 第 322 场周赛20221204 一、本周周赛总结二、 [Easy] 6253. 回环句1. 题目描述2. 思路分析3. 代码实现三、[Medium] 6254. 划分技能点相等的团队1. 题目描述2. 思路分析3. 代码实现四、[Medium] 6255. 两个城市间路径的最小分数1. 题目描述2. 思路分析3. 代…

细粒度图像分类论文研读-2017

文章目录Higher-order Integration of Hierarchical Convolutional Activations for Fine-grained Visual Categorization(by end-to-end feature encoding)AbstractIntroduction关于核关于多尺度Kernelized convolutional activationsMatching kernel and polynomial predicto…

秒懂数据结构之Map _ Set ,竟如此简单

Map、Set 文章目录 前言一、Map、Set的初步理解二、Map、Set的CURD方法的实现三、Map、Set的遍历总结前言 Set和Map天然就是高效搜索/查找的语义在这里我为什么将这两个集合分别列举比较呢&#xff1f;希望通过我的这篇博客可以增进大家对Map和Set的认识&#xff01;一、Map、…

[附源码]Python计算机毕业设计Django汽车美容店管理系统

项目运行 环境配置&#xff1a; Pychram社区版 python3.7.7 Mysql5.7 HBuilderXlist pipNavicat11Djangonodejs。 项目技术&#xff1a; django python Vue 等等组成&#xff0c;B/S模式 pychram管理等等。 环境需要 1.运行环境&#xff1a;最好是python3.7.7&#xff0c;…

计算卫星高度角、方位角

最小二乘定权、电离层对流层改正&#xff0c;都需要卫星的高度角、方位角。本章将介绍求解完卫星的地固坐标系的位置后&#xff0c;如何求解卫星的高度角、方位角。 卫星位置求解请参考之前的博客&#xff1a;卫星位置解算原理与程序设计 参考书籍&#xff1a;黄丁发&#xff0…

读<算法图解><笔记摘录>

从很多途径当中,看到过这本书的知识点,是一本很有趣的算法入门书籍,最近花费了几天的时间将其阅读完,总想着总结一下这本书的算法知识点,分享给大家,也让自己掌握地更加踏实一点. 算法:一组完成任何任务的指令 算法这玩意,在保证满足条件,并且不浪费内存的情况下,要尽可能速度…

18.定位元素练习-淘宝网

注意&#xff1a; 如果一个盒子定位元素属性既有left又有right,则会执行left属性。 既有top又有bottom&#xff0c;会执行top <!DOCTYPE html> <html lang"en"> <head><meta charset"UTF-8"><meta http-equiv"X-UA-Compa…

五子棋游戏AI智能算法设计

五子棋游戏C语言AI智能算法设计 近来发现编制五子棋游戏很有趣&#xff0c;尤其是AI智能算法很烧脑。网上介绍有什么贪心算法&#xff0c;剪枝算法&#xff0c;博弈树算法等等&#xff0c;不一而足。 对于人机对战的电脑智能应子算法&#xff0c;参阅很多五子棋书籍棋谱和五…

有序Map集合:LinkedHashMap和TreeMap该如何选用

文章目录前言一、为什么HashMap是无序的二、LinkedHashMap如何保证有序性三、TreeMap的底层原理四、LinkedHashMap和TreeMap比较总结前言 为什么HashMap是无序的&#xff1f;有序的Map集合有哪些&#xff1f;LinkedHashMap和TreeMap都是有序的Map集合&#xff0c;他们有什么区…

智能优化算法期末复习(更新ing)

目录 一、GA遗传算法 二、ACO蚁群算法 三、PSO粒子群算法 四、SA模拟退火算法 五、ABC人工蜂群算法 六、综合 一、GA遗传算法 1.运算流程 2.遗传算法适应值分配策略&#xff08;基于目标函数的直接分配、基于排名的分配&#xff09; 3.遗传算法在二进制问题&#xff08;如0…

Windows OpenGL ES 图像绿幕抠图

目录 一.OpenGL ES 图像绿幕抠图 1.原始图片2.效果演示 二.OpenGL ES 图像绿幕抠图源码下载三.猜你喜欢 零基础 OpenGL ES 学习路线推荐 : OpenGL ES 学习目录 >> OpenGL ES 基础 零基础 OpenGL ES 学习路线推荐 : OpenGL ES 学习目录 >> OpenGL ES 特效 零基础…

Java开发必须掌握的运维知识 (十)-- Docker集群自动化部署管理:Kubernetes快速入门

一、什么是Kubernetes Kubernetes(K8S)是Google在2014年发布的一个开源项目&#xff0c;用于自动化容器化应用程序的部署、扩展和管理。 Kubernetes通常结合docker容器工作&#xff0c;并且整合多个运行着docker容器的主机集群。 Kubernetes官网地址 二、Kubernetes相关特性 …