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
Flutter 弹窗 Dialog ,
AlertDialog
,IOS风格
阅读更多import'package:flutter/material.dart';import'package:flutter/cupertino.dart';voidmain()=>runApp(newMainAPP());enumDepartment{treasury,state}classMainAPPextendsStatelessWidget{@overrideWidgetbuild(
iaiai
·
2019-07-08 18:00
Flutter 弹窗 Dialog ,
AlertDialog
,IOS风格
阅读更多import'package:flutter/material.dart';import'package:flutter/cupertino.dart';voidmain()=>runApp(newMainAPP());enumDepartment{treasury,state}classMainAPPextendsStatelessWidget{@overrideWidgetbuild(
iaiai
·
2019-07-08 18:00
android 实现APP中改变头像图片的实例代码
具体代码如下所示:packagecom.example.studyapplication.fragment;importandroid.app.Activity;importandroid.app.
AlertDialog
落_红
·
2019-07-02 15:32
Android
AlertDialog
简单实现
超简单的弹框直接干货String[]item={"拍照","相册"};dialog=newAlertDialog.Builder(newContextThemeWrapper(GoEvaluate_Activity.this,R.style.MyDialog))//设置自定义样式也可以为空.setTitle("工具选择").setItems(item,newDialogInterface.OnCl
Android_Mr_Zhao
·
2019-06-24 19:28
开发
Android自定义view仿iOS弹出框效果
好了,用法都会,直接贴上代码1.layout布局文件view_actionsheet.xmlview_
alertdialog
.xml2.style.xml文件@android:color/transpa
AND_Devil
·
2019-06-15 15:13
AlertDialog
的自定义i样式注意
解决android的
AlertDialog
宽度在有些机型或者场景下布满屏幕的宽高适配问题方法:可以在创建
AlertDialog
.Builder时使用自定义style,style里面加上@dimen/abc_dialog_min_width_minor
胜_弟
·
2019-06-11 11:46
AlertDialog
(对话框)
https://www.runoob.com/w3cnote/android-tutorial-seekbar.html1.基本使用流程Step1:创建
AlertDialog
.Builder对象;Step2
苏凯勇往直前
·
2019-06-10 21:42
android
AlertDialog
& EditText & 软键盘
两个问题:
AlertDialog
中默认选中EditText焦点,并且弹出软键盘
AlertDialog
中EditText无法弹出软键盘两个问题都在不同场景出现过;对于第一个问题:业务场景是使用绘制的键盘布局替代系统的软键盘
chauI
·
2019-06-04 17:36
AlertDialog
& EditText & 软键盘
两个问题:
AlertDialog
中默认选中EditText焦点,并且弹出软键盘
AlertDialog
中EditText无法弹出软键盘两个问题都在不同场景出现过;对于第一个问题:业务场景是使用绘制的键盘布局替代系统的软键盘
chauI
·
2019-06-04 17:36
封装一个通用的PopupWindow
本文将从下面几个方面来介绍PopupWindow及其封装,具体如下:概述常用方法基本使用封装PopupWindow使用封装后的PopupWindow显示效果概述PopupWindow表示一个弹窗,类似于
AlertDialog
jzman
·
2019-06-01 00:00
封装
建造者模式
dialog
android
popupwindow
【Android】自定义dialog
自定义dialog类importandroid.app.
AlertDialog
;importandroid.content.Context;importandroid.graphics.PixelFormat
renkuo
·
2019-05-31 16:44
AlertDialog
基本使用
1,默认样式
AlertDialog
.Builderbuilder=newAlertDialog.Builder(this);builder.setTitle("默认标题")//设置标题.setIcon(
羽蛇神
·
2019-05-22 22:18
Dialog
AlertDialog
基本使用
1,默认样式
AlertDialog
.Builderbuilder=newAlertDialog.Builder(this);builder.setTitle("默认标题")//设置标题.setIcon(
羽蛇神
·
2019-05-22 22:18
Dialog
AlertDialog
之内容适配
在手机应用中,对话框(dialog)到处可见,尤其是在一些需要做设置和修改信息时,会有一个对话框作为提醒,让用户确认确实需要这样做,android系统也提供了默认的dialog样式,但是系统提供的样式并不能满足所有的样式需求,而且系统提供的样式不美观,大部分的对话框需要android开发人员自己设计dialog的样式以满足需求。大部分自定义对话框样式的方式都是在dialog对象上设置显示的内容vi
驱梦人
·
2019-05-10 18:09
AlertDialog
之内容适配
在手机应用中,对话框(dialog)到处可见,尤其是在一些需要做设置和修改信息时,会有一个对话框作为提醒,让用户确认确实需要这样做,android系统也提供了默认的dialog样式,但是系统提供的样式并不能满足所有的样式需求,而且系统提供的样式不美观,大部分的对话框需要android开发人员自己设计dialog的样式以满足需求。大部分自定义对话框样式的方式都是在dialog对象上设置显示的内容vi
驱梦人
·
2019-05-10 18:09
Android
AlertDialog
(对话框)
AlertDialog
的应用及Menu的应用八大对话框Builder的属性废话不多说,直接上代码八大对话框普通对话框;单选对话框;多选对话框;水平进度对话框;圆形进度对话框;时间对话框;日期对话框;自定义对话框
一場煙雨侯初晴
·
2019-05-09 21:43
解决dialog 透明背景
AlertDialog
.Builderbuilder=newAlertDialog.Builder(activity,R.style.NoBackGroundDialog);finalAlertDialogdialog
颤抖的闪电
·
2019-04-23 19:51
Android Documentation 随笔
Dialog类是对话框的基类,但您应该避免直接实例化Dialog,而是使用下列子类之一:
AlertDialog
此对话框可显示标题、最多三个按钮、可选择项列表或自定义布局。
M_1646
·
2019-04-18 13:27
Android07之Toast和
AlertDialog
详解
这一次我们继续讲解新的知识,Toast和
AlertDialog
。ToastToast在前面的博客里我们都用的很多,相信大家都有所熟悉和了解,这
autumn-leaf
·
2019-04-16 20:50
Android
Android
alertDialog
设置自定义View时,两侧有空白
练习代码,请无视命名规则等细节, ̄□ ̄||使用
alertDialog
自定义view代码:Viewview=View.inflate(getApplicationContext(),R.layout.dialog_biaozhi
TheDistanceCH
·
2019-04-15 16:06
alertDialog
设置自定义View时,两侧有空白
练习代码,请无视命名规则等细节, ̄□ ̄||使用
alertDialog
自定义view代码:Viewview=View.inflate(getApplicationContext(),R.layout.dialog_biaozhi
TheDistanceCH
·
2019-04-15 16:06
遇到的问题或者BUG
Android:日期选择对话框、时间选择对话框、进度对话框
日期选择对话框DatePickerDialog和时间选择对话框TimePickerDialog都继承于
AlertDialog
,一般用于日期和时间的设定。
_Abby
·
2019-04-01 00:57
Android (3)
packagecom.example.myapplication3_5;importandroid.app.
AlertDialog
;importandroid.app.ProgressDialog;importandroid.app.
AlertDialog
.Builder
Jadyn_
·
2019-03-31 21:52
dialog基本使用介绍
因为基本没什么难度,直接上代码示例代码publicvoidnornal(Viewview){
AlertDialog
.Builderbuilder=newAlertDialog.Builder(this)
ITzhongzi
·
2019-03-28 10:23
Android学习笔记
2019 Android 高级面试题总结
使用场景比如最常见的
AlertDialog
,拿我们开发过程中举例,比如Camera开发过程中,可能需要设置一个初始化的相机配置,设置摄像头方向,闪光灯开闭,成像质量等等,这种场景下就可以使用建造者模式装饰者模式
爱编码的coder
·
2019-03-12 00:00
全栈工程师
java
移动端开发
android
Android 更新提示的
AlertDialog
1,实现效果2,实现逻辑:【1】创建
AlertDialog
,设置它的setPositiveButton,setNegativeButton,setOnCancelListener,最后注意要builder.show
Cricket_小帅
·
2019-03-11 18:24
Android
2019 Android 高级面试题总结
使用场景比如最常见的
AlertDialog
,拿我们开发过程中举例,比如Camera开发过程中,可能需要设置一个初始化
Tony_chao_123
·
2019-03-01 10:41
Android
自定义界面的
AlertDialog
1AlertDialogmAlertDialog;2ViewcontentView=View.inflate(mContext,R.layout.alertDialogView,null);3this.mAlertDialog=newAlertDialog.Builder(mContext).setView(contentView).create();/***显示*/publicvoidshow(
a136447572
·
2019-02-27 14:12
andriod
2.2019Android高级面试题总结
使用场景比如最常见的
AlertDialog
,拿我们开发过程中举例,比如Camera开发过程中,可能需要设置一个初始化的相机配置,设置摄像头方向,闪光灯开闭,成像质量等等,这种场景下就可以使用建造
串行并jjjjj
·
2019-02-19 08:37
学习《第一行代码》(六)
文章目录程序界面(UI)——控件1.TextView(文本框)2.Button3.EditText(用于与用户交互)4.ImageView5.ProgressBar(进度条)6.
AlertDialog
(
George_UP
·
2019-02-18 14:26
Android学习
Builder模式
且很多参数有默认值产品类中,调用顺序不同产生了不同的作用多个部位、零件装配到对象中,产生的结果又不同不同的执行顺序,产生不同的结果Android模式下的Builder模式源码中常用到Builder模式的是
AlertDialog
.Builder
yym_439
·
2019-02-14 10:32
Android
AlertDialog
类
AlertDialog
.Builder提供了setTitle(),setIcon()和setMessage()来创建。
假装你是大灰狼
·
2019-02-13 11:57
Android
控件
Android设计模式之Builder模式在实际项目的运用
使用场景:UML图解:Builder模式的优缺点变种Builder模式在实际项目的案例:网络请求时通用参数配置MaterialDialog对话框小结背景Builder模式是一种设计模式,Android源码中
AlertDialog
小羊子说
·
2019-02-12 17:42
设计模式
Android
手机端
Android设计模式
Android中常用的七种对话框
AlertDialog
平时只是使用没来得及总结,现在把7种常用的对话框手敲一边1、普通对话框privatevoidshowNormalDialog(){
AlertDialog
.Builderbuilder=newAlertDialog.Builder
大道至简_知易行难
·
2019-01-22 14:26
调用相机相册
@OnClick(R.id.publish_img_picture)publicvoidonImgClick(){//添加照片
AlertDialog
.Builderbuilder=newAlertDialog.Builder
FanRQ_
·
2019-01-20 09:09
使用PopupMenu实现弹出菜单
使用PopupMenu实现弹出菜单一、目标二、体验地址三、功能设计四、准备工作1.PopupMenu2.
AlertDialog
五、组合起来1.弹出菜单2.处理菜单事件六、Finally一、目标使用弹出菜单
济沧海x远沧溟
·
2019-01-18 22:34
PopupMenu
AlertDialog
神马笔记
Flutter Widget 之 SimpleDialog
对于通知用户情况的对话框,请考虑使用
AlertDialog
。通常作为子窗口小部件传递给showDialo
Tashan_chi
·
2019-01-17 08:19
Flutter
Flutter Widget 之
AlertDialog
(但是,请注意,由于
AlertDialog
尝试使用其子项的内部维度来调整自身大小,因此使用惰性视口的小部件(如L
Tashan_chi
·
2019-01-15 15:08
Flutter
Android开发——常用控件的使用方法(九)
android开发笔记(1.11-12)常见控件的使用方法1.TextView:2.Button:3.EditText:4.Button和EditText的结合5.ImageView6.ProgressBar7.
AlertDialog
8
Doyle_
·
2019-01-12 23:09
android开发
ProgressDialog(带进度条的对话框)的基本使用
ProgressDialog和
AlertDialog
有点类似,都可以在界面上弹出一个对话框,都能够屏蔽掉其他控件的交互能力。
Android_小牧
·
2019-01-04 15:43
UI控件的基本使用
LogCat调式程序,Toast动态显示信息,
AlertDialog
实现提示框
image.png日志image.pngToastimage.png添加带图片的弹框Toasttoast=Toast.makeText(OptionMenue.this,"添加图片",Toast.LENGTH_SHORT);LinearLayoutlinearLayout=(LinearLayout)toast.getView();ImageViewimageView=newImageView(t
晨曦诗雨
·
2018-12-26 09:06
Android 拍照或从相册选择图片
activity中:importandroid.app.
AlertDialog
;importandroid.content.DialogInterface;importandroid.content.Intent
LI_YUANQI
·
2018-12-20 16:30
android studio驾校题库计分项目
20181217202445728.png)packagecom.example.a41119.standardtest;importandroid.app.Activity;importandroid.app.
AlertDialog
雨花石流星雨
·
2018-12-17 20:24
android
android开发入门 点击按钮弹出对话框
1、在layout中添加按钮2、在MainActivity中添加以下函数publicvoidshowDialog(Viewview){
AlertDialog
.Builderbuilder=newAlertDialog.Builder
niewzh
·
2018-12-14 10:51
AlertDialog
自定义标题大小、颜色、位置
AlertDialog
.Builderbuilder=newAlertDialog.Builder(mContent);TextViewtv=newTextView(mContent);tv.setText
西红柿炒番茄AB
·
2018-12-13 18:35
Android
AlertDialog
报错AndroidRuntimeException: requestFeature() must be called before adding content
Android6.0及以下版本使用
AlertDialog
会报该错误,原因是在dialog.show()之后操作了Window,例如给dialog设置进出动画。
polelice
·
2018-12-13 11:35
Android开发:如何在Dialog弹窗中自定义布局中的按钮设置点击事件,且点击事件是取消该Dialog弹窗
1、要想使Dialog弹窗消失,其实只需要对创建的
AlertDialog
对象调用cancel方法,那么它就会消失了。
HuanCaoO
·
2018-12-11 23:10
Android开发
AlertDialog
弹出对话框(奶瓶)
一,简单的使用方法
AlertDialog
.BuilderaDlog=newAlertDialog.Builder(cloudListActivity.this,
AlertDialog
.THEME_HOLO_LIGHT
_奶瓶
·
2018-12-06 13:38
Android
AlertDialog
————多选对话框
//弹出一个多选对话框privatevoidshowMutilDialog(){//[1]构造对话框的实例
AlertDialog
.Builderbuilder=newBuilder(this);builder.setTitle
Cricket_小帅
·
2018-12-01 16:50
Android
基础知识
Android
AlertDialog
————单选对话框
//弹出一个单选对话框privatevoidshowSingleDialog(){//[1]构造对话框的实例
AlertDialog
.Builderbuilder=newBuilder(this);builder.setTitle
Cricket_小帅
·
2018-12-01 16:12
Android
基础知识
上一页
26
27
28
29
30
31
32
33
下一页
按字母分类:
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
其他