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
Dialog和软键盘在屏幕上的并存问题:
首先说下结论:1.
AlertDialog
和ProgressDialog默认可以和系统软键盘并存与同意屏幕(其实质是并存
浪浪的程序猿
·
2020-08-01 02:44
Android开发
【原创】Android之修改
AlertDialog
对话框及使用系统Holo风格
1.获取
AlertDialog
的TitlefinalintalertTitleId=getResources().getIdentifier("alertTitle","id","android");TextViewtitle
usetsai
·
2020-08-01 01:33
Android
Android 软键盘遮挡Dialog
工作中发现在
AlertDialog
中加入EditText后,Android4.4,SDK19或以下的手机,软键盘弹出后会遮挡Dialog中的按钮,而5.1的手机Dialog会自动向上移动一些。
ShawnSui
·
2020-08-01 00:35
Android自定义Dialog实现通用圆角对话框
前言:圆角对话框在项目中用的越来越多,之前一篇文章有介绍过使用系统的
AlertDialog
+CardView(Android中使用CardView实现圆角对话框)实现了圆角对话框的样式,今天介绍自定义Dialog
ruancw
·
2020-07-31 23:43
Android开发
常用第三方库
一、Dialog1.ColorDialog&PromptDialog2.material-dialogs替代
AlertDialog
3.MNProgressHUD4.ProgressDialog类5.XProgressDialog6
那时候
·
2020-07-31 23:30
常用库
使用自定义视图的
AlertDialog
使用自定义视图的
AlertDialog
主要分为以下几个步骤:1)利用XML文件构建自己的的视图2)将视图添加到
AlertDialog
中*在进行第二步之前,有时需要对对话框窗口进行额外的设置下面分步骤叙述
哦...
·
2020-07-31 21:11
在fragment中怎样实现
AlertDialog
AlertDialog
.Builderbuilder=newBuilder(getActivity());builder.setTitle("请输入");//设置对话框标题builder.setIcon
wi卫子th
·
2020-07-31 20:20
AlertDialog
详解
Activity之上的一个小窗口.处于下面的Activity失去焦点,对话框接受所有的用户交互.对话框一般用于提示信息和与当前应用程序直接相关的小功能.AndroidAPI支持下列类型的对话框对象:警告对话框
AlertDialog
meshless
·
2020-07-31 20:00
alertDialog
android
dialog
android
layout
thread
button
扩展
AlertDialog
.Builder的使用
//选择privatevoidselectSchool(){ArrayListlist=newArrayList<>();for(inti=0;i
小周郎
·
2020-07-31 20:05
使用方式
android:实现退出确认框对话
setTitle("警告").setIcon(android.R.drawable.ic_dialog_info).setPositiveButton("确定",null).show();Log.e(TAG,"
AlertDialog
l-wz
·
2020-07-31 20:30
android
Android中对话框右上角关闭悬浮按钮的实现(总结)
transparenttrue#00000000如何使用:finalDialogdialog=newDialog(mContext,R.style.Translucent_NoTitle);注意:要用Dialog,不要用
AlertDialog
北极熊的微笑
·
2020-07-31 19:44
Android开发
记录一下,自定义
AlertDialog
的父类,简单方便
1.主要代码:publicabstractclassCommonConfirmBaseDialogextendsAlertDialog{//protectedContextmContext;protectedWeakReferenceweakReference;protectedViewmContentView;protectedTextViewtvCancel;protectedTextView
福柯柯
·
2020-07-31 19:25
android
dialog
随笔
Android Dialog
从以下方面开始总结:1.
AlertDialog
的使用2.Dialog的使用3.两者的异同点与使用选择
AlertDialog
的使用在Android源码中,由于
AlertDialog
被保护起来,没有办法直接
大超-无痕
·
2020-07-31 16:31
控件作总结
2010.11.28(3)———android
AlertDialog
:android.view.WindowManager$BadTokenException
2010.11.28(3)———androidAlertDialog:android.view.WindowManager$BadTokenException:Unabletoaddwindow参考:[url]http://hi.baidu.com/webtalk/blog/item/74ac84cb5125e4f353664fe6.html[/url]错误:android.view.Window
cody123
·
2020-07-31 16:57
【Android源码】
AlertDialog
源码分析
Android系统封装了
AlertDialog
,用来给我们使用。
指间沙似流年
·
2020-07-31 16:39
自定义Dialog如何去除阴影
思路:先创建一个自定义布局,布局可以随便写,然后通过调用
AlertDialog
.Builer对象上的‘setView()将其添加到
AlertDialog
`。
boatImpish
·
2020-07-31 16:45
Android
android WheelView时间选择器
privatevoidshowtimepicker(){
AlertDialog
.Builderbuilder=newAlertDialog.Builder(VideoPlayBackActivity.this
east-evil
·
2020-07-31 15:16
安卓专业高级一Day01
privatevoidinitDatas(){msg.setOnClickListener(newView.OnClickListener(){@OverridepublicvoidonClick(Viewv){//创建构造者
AlertDialog
.Builderbuilder
Oldsinger
·
2020-07-31 14:44
Android今日头条适配方案对
AlertDialog
的影响
Android今日头条适配方案对
AlertDialog
的影响前言今日头适配方案Density类
AlertDialog
解决方案ScreenUtils工具类前言前段时间维护公司老项目时发现系统弹框显示不全,
曾经_Once
·
2020-07-31 14:28
AlertDialog
今日头条适配方案
问题解决
移动终端应用开发第七课
常用对话框普通对话框进度条对话框单选对话框消息对话框多选对话框自定义对话框1.普通对话框普通对话框(Dialog)一般只会显示提示信息,并具有确定和取消按钮2.单选对话框单选对话框和RadioButton作用类似,只能选择一个选项,它是通过
AlertDialog
Juvenile_ty
·
2020-07-30 23:00
Android网格布局的简单使用
Java反射SimpleAdapter的进行封装数据OnItemClickListener事件的使用
AlertDialog
的基本使用主布局文件activity_main.xml显示Item的布局模板title_view.xml
Kid_TH
·
2020-07-30 13:51
Android
理论
AlertDialog
AlertDialog
简介
AlertDialog
可以在当前的界面弹出一个对话框,这个对话框是置顶于所有的界面纸上的,能够屏蔽掉其他空间的交互能力,因此一般
AlertDialog
都是用于提示一些非常重要的内容或者警告信息
无心_IT
·
2020-07-30 12:11
Android
对话框
界面
Android 自定义炫酷的加载框Loading动画效果
Android自定义炫酷的加载框Loading动画效果一.快速实现第一种:1.自定义加载框类:importandroid.app.Activity;importandroid.app.
AlertDialog
冰糖葫芦三剑客
·
2020-07-30 09:02
弹框
Android源码解析:
AlertDialog
和WindowManager源码解析
(一)
AlertDialog
的实现模式
AlertDialog
的实现模式使用了Builder模式,通过Builder对象来组装Dialog的各个部分。
不明真相的吃瓜攻城狮
·
2020-07-30 07:13
Android源码分析
AlertDialog
对话框-自定义View
packagecom.zdsoft.dialog1130;importandroid.content.DialogInterface;importandroid.support.v7.app.
AlertDialog
zjs261019
·
2020-07-30 06:21
Android
控件
android详细的对话框
AlertDialog
.Builder使用方法
通过new一个
AlertDialog
.Builder对象,构造一个具有Title(setTitle)、message(setMessage)和确认按钮PositiveButton(setPositiveButton
z1395129433
·
2020-07-30 06:35
android
android
框
android 带EditView(编辑框)的
AlertDialog
(对话框)及获取输入内容
finalEditTextet=newEditText(this);newAlertDialog.Builder(this).setTitle("搜索").setIcon(android.R.drawable.ic_dialog_info).setView(et).setPositiveButton("确定",newOnClickListener(){publicvoidonClick(Dialo
浣熊
·
2020-07-30 06:24
安卓弹出框
AlertDialog
基本用法
背景
AlertDialog
是安卓里用于显示弹出框的常用组件,使用频率较高。
安卓007
·
2020-07-30 06:56
安卓
Android 自定义
AlertDialog
并且4个角为圆角
//自定义AlertDialogLayoutInflaterinflater=getLayoutInflater();Viewview1=inflater.inflate(R.layout.dialog_activity,null);ImageViewivguanbi=view1.findViewById(R.id.iv_guanbi);TextViewwjmm=view1.findViewByI
yijiaodingqiankun
·
2020-07-30 06:49
移动
Android
Android--闹钟小程序(Broadcast实现)
AlarmManagerpackageorg.lxh.demo;importjava.sql.Date;importjava.text.SimpleDateFormat;importandroid.app.Activity;importandroid.app.
AlertDialog
yayun0516
·
2020-07-30 06:28
Android
极简安卓教程
Android的几种alert对话框
1@Override2publicvoidonClick(Viewv){345switch(v.getId()){6caseR.id.d1:78
AlertDialog
.Builderbuilder=newAlertDialog.Builder
oIdmonk
·
2020-07-30 05:10
AlertDialog
(自定义对话框)示例
一、定义一个与系统对话框不同的布局,然后调用setView()将布局inflater到
alertDialog
上:二、效果图:三、帖代码:MainActivitypackagecom.Evan.demo_
alertdialog
「已注销」
·
2020-07-30 05:10
View
《转载》Android
AlertDialog
方法setView(view,0,0,0,0)的使用
本文转载>>AboutDoyee®™通常使用的SetView(view)会显示如下效果LayoutInflaterfactory=LayoutInflater.from(m_activity);finalViewtextEntryView=factory.inflate(R.layout.dialog_edit_text,null);EditTextetCon=(EditText)textEntr
everxu
·
2020-07-30 05:05
Android——系统提示对话框(
AlertDialog
)
普通提示框:newAlertDialog.Builder(MainActivity.this).setTitle("退出")//设置对话框标题.setMessage("确定要退出?")//设置显示的内容.setPositiveButton("确定",newDialogInterface.OnClickListener(){//添加确定按钮@OverridepublicvoidonClick(Dia
是我ChaoYoung
·
2020-07-30 05:53
Android
Android开发课程实验报告② UI组件
Android开发课程实验报告@author:065实验三:Android布局实验实验报告目录Android开发课程实验报告实验目的具体实验分析内容一:用SimpleAdapter和ListView的使用内容二:
AlertDialog
x1Nge.
·
2020-07-30 05:19
学习记录
安卓
AlertDialog
设置透明背景
一、在style文件里面添加#00000000@android:color/transparent二、在new对话框的时候
AlertDialog
.Builderbuilder=newAlertDialog.Builder
wu_lian_nan
·
2020-07-30 05:37
安卓
AlertDialog
详解
对话框介绍与示例对话框在程序中不是必备的,但是用好对话框能对我们编写的应用增色不少。采用对话框可以大大增加应用的友好性。比较常用的背景是:用户登陆、网络正在下载、下载成功或者失败的提示,还有,比如:短信来了、电池没电了等等,只要你想到的,能提高用户体验的,你都可以使用对话框。首先,请大家找到文档,在右上角的搜索框中输入Dialog,根据提示,选择app.dialog。大家可以先阅读一下英文文档,大
woaieillen
·
2020-07-30 05:40
android
Android 三个按钮对话框
1、activity_main.xml2、ActivityMain.java包importandroid.app.Activity;importandroid.app.
AlertDialog
;importandroid.content.DialogInterface
wljun739
·
2020-07-30 05:35
Android
Android自定义
Alertdialog
对话框实现
目标:自定义androidalertdialog对话框的布局文件,利用shape来实现。activity的CusAlertDiaglogForXml的代码如下:publicclassCusAlertDiaglogForXmlextendsActivity{privateButtoncus_alert_dialog01_btn;@OverrideprotectedvoidonCreate(Bundl
windvally
·
2020-07-30 05:25
Android学习分享
Android 之
AlertDialog
对话框
/***弹出对话框文本单选多选自定义*/publicclassMainActivityextendsActivity{privateintindex=0;@OverrideprotectedvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.activit
why_111
·
2020-07-30 05:48
Android 提示框
用
AlertDialog
实现提示框效果。
wenyaguang
·
2020-07-30 05:06
Android开发
Android开发
提示框
Android开发——常见对话框(代码实现及现实效果)
packagecom.example.myapp_06_dialog;importandroidx.appcompat.app.
AlertDialog
;importandroidx.appcompat.app.AppCompatActivity
Xiong-er
·
2020-07-30 04:00
Android开发
简单实现 Android 闹钟
求大神讲解话不多说,看代码MainActivityimportandroid.app.Activity;importandroid.app.AlarmManager;importandroid.app.
AlertDialog
赤峰==红塔山
·
2020-07-30 04:35
Android简单实现全局弹框之系统对话框
AlertDialog
首先AndroidManifest.xml中加入权限:下面是简单实例:
AlertDialog
.Builderbuilder=newAlertDialog.Builder(this);builder.setIcon
代码也得圆润
·
2020-07-30 04:34
AlertDialog
对话框 5种
MainActivity.classpublicclassMainActivityextendsAppCompatActivityimplementsView.OnClickListener{privateButtonbt1;privateButtonbt2;privateButtonbt3;privateButtonbt4;privateButtonbt5;@Overrideprotectedv
weixin_34309435
·
2020-07-30 03:51
Xamarin.Android
AlertDialog
中的EditText打上去字为什么不显示?也没有光标闪烁
AlertDialog
.Builderbuilder=newAlertDialog.Builder(this);builder.SetTitle("请您输入管理员密码");Viewv=LayoutInflater.From
weixin_34235135
·
2020-07-30 03:55
Xamarin.Android 记事本(二)自定义
AlertDialog
导读1.自定义一个
AlertDialog
2.添加一条数据正文记事本应当有一个添加功能,这里我打算在右上角放一个item,然后点击这个item弹出一个对话框,输入名称,点击确定跳转到另一个activity
weixin_33873846
·
2020-07-30 03:23
[Xamarin] 簡單使用
AlertDialog
(转帖)
這東西跟Toast很像,有方便提示的作用像是Windows上面的MessageBox或是Javascript的Alert會先阻斷使用者並且下一個決定很簡單我就不贅述,基本上透過
AlertDialog
就可以輕鬆叫起來
weixin_30909575
·
2020-07-30 02:51
Android———最详细的系统对话框(
AlertDialog
)详解
在实际应用开发中,用到系统对话框中的情况几乎是没有的。按开发流程来说,UI工程师都会给出每一个弹窗的样式,故而在实际开发中都是自定义弹窗的。即使用到的地方不多,但是我们也是需要了解并且能熟练的运用它,下面为大家奉上各种系统对话框的实现。目录系统对话框的几种类型与实现在项目的实际开发中,用到的系统对话框几乎是没有的。原因大概包含以下几点:样式过于单一,不能满足大部分实际项目中的需求。对话框的样式会根
weixin_30887919
·
2020-07-30 02:47
Android 高级UI组件(三)
一、popupWindow1.
AlertDialog
和PopupWindow最关键的区别是
AlertDialog
不能指定显示位置,只能默认显示在屏幕最中间(当然也可以通过设置WindowManager参数来改变位置
weixin_30530523
·
2020-07-30 02:08
上一页
14
15
16
17
18
19
20
21
下一页
按字母分类:
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
其他