E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
alertdialog
第五章:消息通知的处理
Toast显示消息内容Toast.makeText(当前Activity,"显示的消息",Toast.LENGTH_SHORT).show();
AlertDialog
对话框1.带取消/确定按钮的对话框2
JackHCC
·
2024-01-10 19:39
【Android进阶】flutter-
alertdialog
classMyAlertDialogextendsStatelessWidget{@overrideWidgetbuild(BuildContextcontext){returnMaterialApp(title:'
AlertDialog
小康
·
2024-01-10 04:40
harmonyOS鸿蒙官网教程-添加弹窗
ArkUI为我们提供了丰富的弹窗功能,弹窗按照功能可以分为以下两类:确认类:例如警告弹窗
AlertDialog
。选择类:包括文本选
刘红鹏
·
2024-01-07 06:23
HarmonyOS鸿蒙语言开发
harmonyos
学习
华为
Android删除指定目录下的文件
Filefile=newFile(filePath);if(file.isFile()&&file.exists()){returnfile.delete();}returnfalse;}例如:(配合
AlertDialog
Zender Han
·
2024-01-06 06:13
Android开发
android
java
android一步步实现dialog选择框,支持单选和多选
需要先导入baseReclyAdapterlibrary的model点击打开链接1、创建dialogpackagecom.yann.yanndemo.dialog;importandroid.app.
AlertDialog
yann02
·
2024-01-01 06:12
Android
android
dialog
选择框
单选和多选
Flutter 自定义Dialog
我们项目开发中,有很多地方会用到dialog,虽然flutter自身也有,比如AboutDialog、
AlertDialog
、SimpleDialog、CupertinoAlertDialog等等之类的
Kernel521
·
2023-12-31 20:26
安卓之对话框
xml:packagecom.example.my_dialog;importandroid.content.DialogInterface;importandroid.support.v7.app.
AlertDialog
bluewind1230
·
2023-12-30 12:02
AlertDialog
基础使用
活动中定义方式一publicvoidwarningInvliadCard(StringinvalidCard){newAlertDialog.Builder(this).setTitle(getString(R.string.invalidCard_head)).setMessage(invalidCard).setPositiveButton(R.string.button_sure,newDi
瑟闻风倾
·
2023-12-29 00:37
Android——
AlertDialog
对话框之单选对话框
AlertDialog
对话框包含普通、单选、多选和自定义对话框,本文介绍其中的单选对话框。一、实现效果二、单选对话框简介单选对话框的内容区域显示为单选列表。
Slowfish172
·
2023-12-27 10:13
AndroidStudio
android
android
studio
java
Android(监听+回调=观察者)模式从Dialog到Activity传递数据
自定义Dialog实现类,实现监听器方法,/****自定义的Dialog类,不是
AlertDialog
*实现了View的点击监听*@authorwww.cuiweiyou.com*/publicclassCustomAlertDialogextendsandroid.app.Dialogimplementsandroid.view.View.OnClickListener
追梦梦
·
2023-12-23 11:14
android开发
Android——消息提示控件
1.解决方法2.AlertDailog(对话框)1.使用对话框的步骤2.运用1.布局2.
AlertDialog
_MainActivity.java3.效果展示3.PopupWindow(悬浮框)1.与
AlertDialog
可爱多一点@
·
2023-12-18 20:57
Android
android
移动开发
《黑马程序员Android移动应用基础教程》学习笔记(3)
3.1.1TextView3.1.2Button3.1.3EditText3.1.4ImageView3.1.5RadioButton3.1.6CheckBox3.1.7Toast3.1.8xPagerView不想写了,下次一定3.1.9xSpinner不想写代码示例了,下次一定3.2
AlertDialog
W大小姐想让我裂开来
·
2023-12-17 17:22
Android笔记
android
学习
android
studio
android项目实战之实现弹框页面自定义
引言项目需求弹框
AlertDialog
界面实现自定义实现1.自定义xml2.Fragement实现newAlertDialog.Builder(mActivity).setCancelable(true
sccd2009
·
2023-12-15 20:40
android
gitee
AlertDialog
小补充
可以参考:http://www.jianshu.com/p/f8fea1091259
AlertDialog
也是Android系统当中最常用的对话框之一。
dev晴天
·
2023-12-15 12:30
Flutter弹窗的简单使用
AlertDialog
确认取消弹窗//
AlertDialog
确认取消弹窗void_
alertDialog
(){showDialog(context:context,barrierDismissible:
举儿
·
2023-12-15 11:49
Flutter
flutter
弹窗
自定义弹窗
Android DialogFragment(2)
AndroidDialogFragment(2)附录文章1简单介绍了如何实现一个DialogFragment,本文再介绍一种简单的方法:直接重写DialogFragment的onCreateDialog返回一个
AlertDialog
zhangphil
·
2023-12-15 01:14
Android
android
Android DialogFragment(1)
AndroidDialogFragment(1)和过去的
AlertDialog
类似,Android引入的DialogFragment旨在为开发者提供一个“富”dialog,而不必受到过去AndroidAlertDialog
zhangphil
·
2023-12-15 01:43
Android
android
Android
AlertDialog
setView,kotlin
AndroidAlertDialogsetView,kotlinimportandroid.content.DialogInterfaceimportandroid.os.Bundleimportandroid.view.LayoutInflaterimportandroidx.appcompat.app.AlertDialogimportandroidx.appcompat.app.AppCom
zhangphil
·
2023-12-15 01:43
kotlin
Android
android
kotlin
Android
AlertDialog
提高中心位置往上,Kotlin
AndroidAlertDialog提高中心位置往上,Kotlinprivatefunshow(){valview=LayoutInflater.from(this).inflate(android.R.layout.simple_list_item_1,null)valtext=view.findViewById(android.R.id.text1)text.text="hello,world
zhangphil
·
2023-12-15 01:57
kotlin
Android
android
kotlin
HarmonyOS给应用添加弹窗
ArkUI为我们提供了丰富的弹窗功能,弹窗按照功能可以分为以下两类:确认类:例如警告弹窗
AlertDialog
。选择类:包括文
阿玮编程_
·
2023-12-14 15:49
鸿蒙(HarmonyOS)
harmonyos
华为
鸿蒙系统
Java设计模式之建造者模式
前言建造者模式在开发中经常用到,看下面一段android代码应该很熟悉
AlertDialog
.Builderbuilder=newAlertDialog.Builder(context);builder.setTitle
imkobedroid
·
2023-12-04 05:12
Android四大组件之- BroadcastReceiver的创建与应用
app内自发自收localBroadcastManager.sendBroadcast发送本地标准广播,app内自发自收发送本地有序广播接收三方应用发送的广播三、其他应用通过广播打开activity和
AlertDialog
找茬小王子
·
2023-12-03 02:20
Android
android
《第一行代码:Android》第三版4.2常用控件的使用方法(1)
概述本文主要讲解常用控件的使用,包括:TextView、Button、EditText、ImageView、ProgressBar、
AlertDialog
。
superfreak
·
2023-12-02 20:48
android
【android开发-09】android中
AlertDialog
和ProgressDialog的用法介绍
1,
AlertDialog
的用法
AlertDialog
是Android中用于创建对话框的类,通常用于显示消息、警告或确认信息。
孤舟簔笠翁
·
2023-12-01 17:38
android应用开发
android
Android Studio中实现弹出提示框的两种方法
在AndroidStudio中,我们可以通过两种方法来实现弹出提示框:使用
AlertDialog
和Toast。
后端工程实践
·
2023-12-01 17:28
android
studio
android
ide
Android
2018-03-30—PopupWindow和
AlertDialog
使用
PopupWindow和
AlertDialog
都是实现一个弹出框的功能,但是两个又不太一样,
AlertDialog
在弹出以后点击弹出框以外的东西无效,而PopupWindow可以。
季白zy
·
2023-11-30 21:17
[Android]
AlertDialog
对话框
AlertDialog
通常用于与用户进行交互,例如要求用户确认某个操作、输入一些信息或者从一组选项中选择一个。
Hdnw
·
2023-11-30 18:07
Android
android
AlertDialog
Jtti:Android
alertdialog
嵌套出错怎么解决
在Android开发中,
AlertDialog
嵌套可能导致一些问题,例如显示异常或无法关闭对话框等。这通常是由于上一个
AlertDialog
未被正确关闭,导致下一个
AlertDialog
无法正常工作。
Jtti
·
2023-11-28 17:17
android
NextJS开发:封装shadcn/ui中的
AlertDialog
确认对话框
封装cx-alert-dialog.tsximport{
AlertDialog
,AlertDialogAction,AlertDialogCancel,AlertDialogContent,AlertDialogDesc
芝士思维
·
2023-11-28 17:14
NextJS开发教程
nextjs
typescript
react.js
【代码】基于Android的电子地图初步设计(高德SDK)
importandroid.Manifest;importandroid.annotation.TargetApi;importandroid.app.Activity;importandroid.app.
AlertDialog
派大星啦啦啦
·
2023-11-28 03:20
Android
android
Android设计模式-常用模式
比如构建一个
AlertDialog
,标题、内容、取消按钮、确定按钮、中立按钮,你可能只需要单独设置几个属性即可;另外在我的OkH
逐梦_person
·
2023-11-28 01:55
Android设计模式学习
android
设计模式
安卓PopupWindow
1、PopupWindow与
AlertDialog
的区别最关键的区别是
AlertDialog
不能指定显示位置,只能默认显示在屏幕最中间(当然也可以通过设置WindowManager参数来改变位置)。
kevin@1024
·
2023-11-27 23:34
Android
UI
popupWindow
android
Android -对话框
AlertDialog
文章目录前言一、
AlertDialog
用法1.使用步骤2.
AlertDialog
.Builder对象的常用属性讲解二、
AlertDialog
实例代码提醒消息对话框提问对话框普通列表对话框多选列表对话框自定义布局对话框三
找茬小王子
·
2023-11-27 13:17
Android
android
Android 提示框代码 java语言
在Android中,你可以使用
AlertDialog
类来创建提示框。
记忆的小河
·
2023-11-25 06:24
android
java
开发语言
Android :
AlertDialog
对话框、单选、多选、适配器-简单应用
示例图:1:创建
AlertDialog
.Builder对象;2:调用setIcon()设置图标,setTitle()或setCustomTitle()设置标题;3:设置对话框的内容:setMessage
javaGHui
·
2023-11-24 16:42
Android
相关
android
HarmonyOS ArkTS 应用添加弹窗(八)
ArkUI为我们提供了丰富的弹窗功能,弹窗按照功能可以分为以下两类:确认类:例如警告弹窗
AlertDialog
。选择类:包括文本选择弹窗Text
志尊宝
·
2023-11-22 13:24
HarmonyOS
harmonyos
华为
Android 工具类
packagecom.xdtech.utils;importandroid.annotation.TargetApi;importandroid.app.Activity;importandroid.app.
AlertDialog
mj_小军
·
2023-11-21 20:38
android
android
studio
java
AlertDialog
三种对话框的实现
参考:http://blog.csdn.net/woaieillen/article/details/7378324
AlertDialog
概述对话框在程序中不是必备的,但是用好对话框能对我们编写的应用增色不少
JabinYan-GoOn
·
2023-11-16 10:36
对话框
android应用
【无标题】
packagecom.example.permissiontest;importandroid.app.Activity;importandroid.app.
AlertDialog
;importandroid.content.Context
汤米粥
·
2023-11-14 13:38
动态申请定位权限
第一行代码第三章——UI开发的点点滴滴
知识点目录3.1如何编写程序界面3.2常用控件的使用方法3.2.1TextView3.2.2Button3.2.3EditText3.2.4ImageView3.2.5ProgressBar3.2.6
AlertDialog
3.2.7ProgressDialog3.3
一夜空中最亮的星一
·
2023-11-09 20:06
第一行代码
第三章:软件也要拼脸蛋-UI 开发的点点滴滴
常用控件常用控件有:按钮Button、文本显示框TextView、图片显示框ImageView、文本编辑框EditText、进度条ProgressBar、提示框
AlertDialog
、进度提示框ProgressDialog
weixin_30505485
·
2023-11-09 20:35
ui
第一行代码学习笔记第三章——UI开发的点点滴滴
3.1如何编写程序界面3.2常用控件的使用方法*3.2.1TextView*3.2.2Button*3.2.3EditText*3.2.4ImageView*3.2.5ProgressBar*3.2.6
AlertDialog
salmon_zhang
·
2023-11-09 20:34
第一行代码
第一行代码
Android控件
Android四大布局
ListView
RecyclerView
Android学习笔记(3)——UI开发的点点滴滴
第三章UI开发的点点滴滴3.1常用控件的使用方法3.1.1TextView3.1.2Button3.1.3EditText3.1.4ImageView3.1.5ProgressBar3.1.6
AlertDialog
3.1.7ProgressDialog3.2
圆圆的肚子
·
2023-11-09 20:04
android
android第一行代码《第三章》UI开发的点点滴滴
知识归纳3.1如何编写程序界面3.2常用控件的使用方法3.2.1TextView3.2.2Button3.2.3EditText3.2.4ImageView3.2.5PregressBar3.2.6
AlertDialog
3.2.7ProgressDialog3.3
毅凡一直在进步
·
2023-11-09 20:02
java
android
android v7包 style,使用android.support.v7.app.
AlertDialog
自定义默认Theme.AppCompat.Dialog.Alert...
我最近在我的应用程序中切换
AlertDialog
实例以使用android.support.v7.app.
AlertDialog
,但在将自定义主题和样式应用于警报对话框时遇到问题.在我的styles.xml
浪公子
·
2023-11-07 13:10
android
v7包
style
android
alertdialog
.builder监听,GitHub - watayouxiang/AlertDialogDemo: android.support.v7.app.AlertDia.
AlertDialogDemoAndroidandroid.support.v7.app.AlertDialogDemo/***最简单的
AlertDialog
**@paramview*/publicvoidshowSimpleDialog
weixin_39578674
·
2023-11-07 13:10
android
android.support.v7.app.
AlertDialog
.Builder使用说明
先看图喜欢那种效果呢,左边是api22以下默认的,右边是android.support.v7.app.
AlertDialog
用法说明:1.改成v7的alertdialogandroid.support.v7
stevenzqzq
·
2023-11-07 13:38
Android
android.support.v7.app.
AlertDialog
与android.app.
AlertDialog
在继承FrameActivity下的Activity中打开
AlertDialog
会闪退,报错如下:java.lang.IllegalStateException:YouneedtouseaTheme.AppCompattheme
qq_24338831
·
2023-11-07 13:38
android.support.v7.app.
AlertDialog
ndroid.support.v7.app.
AlertDialog
参考android.support.v4.app.ActivityCompat;-CSDN博客
柳鲲鹏
·
2023-11-07 13:35
Android
android
Android Studio基础使用单选对话框
AlertDialog
AndroidStudio基础使用单选对话框
AlertDialog
(继承上一节的代码)第一步:在布局xml定义ID值第二步:在LayoutActivity.java中绑定布局XML文件,并直接使用onCreate
徐为波
·
2023-11-07 04:34
Android开发
android
studio
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他