![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
安卓
dhx_sx
挣很多很多钱
展开
-
AlertDialog基本使用方法
安卓,AlertDialog基本使用方式 第一步先进入设计模式 //Builder进入设计模式 AlertDialog.Builder builder1 = new AlertDialog.Builder(AlertDialogActivity.this); 这里的bulider1是自己设置的一个按钮用来触发弹出对话框 使用自带的三种按钮 setPositiveButton 确切的,支持的,肯定的按钮 setNeutralButton 中性的按钮 setNegativeButton 消极的按钮 Alert原创 2021-05-16 16:51:25 · 1296 阅读 · 2 评论 -
Adapter,基本使用方法
Adapter基本使用方法 RecyclerView中适配器使用 先建一个类继承RecyclerView.Adapter package com.example.myapplication.recyclerview; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; public class Adapter extend原创 2021-05-14 21:03:50 · 1292 阅读 · 9 评论