腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
带有可修改单行标题的Android对话框
android
、
dialog
、
title
简而言之,我正在编写一个"DurationPickerDialog“,它的工作方式类似于DatePickerDialog的工作方式,但基于类型工作,因此用户指定了年数、月数、天数等。// Note: befo
浏览 1
提问于2011-06-12
得票数 1
回答已采纳
6
回答
Android:
Activity
/
Dialog
意外消失
android
、
android-ndk
、
android-alertdialog
、
android-4.2-jelly-bean
、
android-dialog
如果我使用
Dialog
或AlertDialog,也会发生同样的情况。最奇怪的是,失踪似乎是随机的(并不总是发生)。网络下对话码 @Override protected void
浏览 5
提问于2013-05-15
得票数 6
回答已采纳
1
回答
带有导航抽屉的工具栏上的Android 'back‘动作
android
、
android-fragments
、
kotlin
、
android-toolbar
、
navigation-drawer
actions for the toolbar this, //host
activity
(
activity
as AppCompatActivity).supportActionBar!!.title = "About"(
a
浏览 0
提问于2018-09-03
得票数 2
回答已采纳
3
回答
从另一个类调用警报对话框
android
、
android-alertdialog
DialogInterface.OnClickListener() { public void onClick(DialogInterface
dialog
DialogInterface.OnClickListener() { public void onClick(DialogInterface
dialog
浏览 2
提问于2011-03-04
得票数 0
回答已采纳
2
回答
Android:如何从AsyncTask调用活动的非静态方法(通过doInBackground)
android
、
android-asynctask
public class BackgroundTask extends AsyncTask<Void, Void, Void> private ProgressDialog
dialog
;public BackgroundTask(AppCompatActivity
activity
)
dialog
= new ProgressDialog(
activity
, please wait.");
dialog
.setProgress
浏览 4
提问于2016-04-23
得票数 0
回答已采纳
1
回答
WindowLeaked错误PhoneWindow
android
、
memory-leaks
、
android-asynctask
、
progressdialog
、
android-windowmanager
一些Stackoverflow线程提到可能有这样的情况,
Activity
是finishing,而我尝试在相同的show ProgressDialog中完成,这可能会导致这个异常,但我已经检查了if
activity
WindowLeaked异常 private ProgressDialog
dialog
;
浏览 0
提问于2014-05-23
得票数 0
3
回答
活动组中未显示的对话框
android
、
dialog
、
radio-button
我在其中一个子
activity
..on中有单选按钮,单击需要显示对话框的任何单选按钮...我无法显示该对话框.....我收到如下错误: replaceContentView("
activity
2",
activity
2);=new Intent(v.getContext(),AuditActivity.class);
浏览 0
提问于2013-05-15
得票数 0
1
回答
在对话框中更改变量时,在主活动中调用方法
java
、
android
、
dialog
Dialog
1 extends
Dialog
{ Button button; super(
activity
); integerI = i; button = findViewByIdpublic void onClick(View
浏览 2
提问于2018-02-02
得票数 0
回答已采纳
3
回答
Dialog
.show()与
Activity
.showDialog()
android
、
dialog
创建对话框(例如,使用AlertDialog.Builder),然后调用新创建的
Dialog
的show()方法。调用活动的showDialog()方法,传入一个int,它唯一地定义要构建的对话框类型。我能想到的就是:如果您需要以某种方式参数化对话框,那么使用
Activity
.showDialog可能会有点尴尬,如中所描述的那样。使用
Activity
.showDialog的原因
Activity
.showDialog的API文档说,对话框是由活动“管理”的,我认为这会带
浏览 2
提问于2010-07-03
得票数 37
回答已采纳
1
回答
更改自定义AlertDialog类中的布局元素属性
java
、
android
、
android-alertdialog
、
android-view
我所做的就是创建了这个类:
Activity
activity
; TextView text; this.
activity
=
activity
; builder
浏览 3
提问于2021-08-08
得票数 1
回答已采纳
3
回答
ProgressDialog关闭onClick
android
、
dialog
、
onclick
、
android-asynctask
public LoadTask(
Activity
activity
, FaceRecognizer recognizer,SecretKey key) {
dialog
= new ProgressDialog(
activity
); protectedvoid onPreExecute() {
dialog
.setMessage("Loadi
浏览 0
提问于2012-11-21
得票数 4
回答已采纳
2
回答
带有mysql变量的Mysqli预准备语句
php
、
mysql
、
mysqli
、
prepared-statement
) * sin( radians(from
activity
order by distance limit 5;) * cos( radians(
activity
.longitude ) - radians(
activity
.latitude ) ) ) ) AS distanc
浏览 2
提问于2014-08-05
得票数 1
1
回答
如何在MainActivity中设置DialogFragment的onDismissListener?
android
、
android-fragments
、
android-dialogfragment
、
android-dialog
我试着添加 @Override super.onDismiss(
dialog
);
Activity
activity
= getActivity(); if (
activity
instanceof DialogInterface.OnDismissListener) {((DialogInterface.OnDismissListener)
activity
).on
浏览 40
提问于2019-09-11
得票数 0
回答已采纳
1
回答
Android:在扩展了
dialog
的类中显示进度对话框
android
、
progressdialog
我有一个用
Dialog
本身扩展的类。在将请求发送到服务器的对话框中有某些可用选项。当用户点击任何这样的选项时,我想显示一个进度等待对话框。public class LeaderBoard extends
Dialog
implements View.OnClickListener { public LeaderBoard(Context
浏览 0
提问于2011-09-07
得票数 0
回答已采纳
2
回答
从活动中调用AsyncTask
android
、
asynchronous
对于这段代码(我已经排除了doInBackground(), postExecute()等)从CheckServer活动调用异步任务时,我应该如何传递
Activity
参数?public class CheckServer extends
Activity
{ protected void onCreate(Bundle savedInstanceStateunused") private class HttpTicket extends AsyncTask<String, String, Stri
浏览 3
提问于2013-04-05
得票数 0
2
回答
如何使用Kotlin从Android中的片段中访问另一个片段?
android
、
kotlin
、
android-fragments
、
nullpointerexception
val
dialog
= AlertDialog.Builder(
activity
as Context)
dialog
.setMessageprintln("Shared preferences cleared") val intent = Intent(
activity
navigatio
浏览 1
提问于2020-07-10
得票数 0
1
回答
BadTokenException无法添加窗口(ProgressDialog)
android
、
compiler-errors
、
progressdialog
protected
Dialog
onCreateDialog(int id) { case
DIALOG
_LOADING:
dialog
.setContentView(R.layout.loading);
dialog
= null(
Dialog
.java:241) 12-18 12:12:39.250: E
浏览 0
提问于2012-12-18
得票数 0
回答已采纳
1
回答
Firebase RecyclerView
android
如何在此代码中设置进度对话框: class RetrievePdfView extends AsyncTask<String,Void,InputStream> { protected InputStream doInBackground(String... strings) { try{ HttpURLConnection urlConnection
浏览 12
提问于2021-08-06
得票数 1
3
回答
从AsyncTask更新UI线程的最佳方法
android
、
android-fragments
、
android-asynctask
显示如下:private ProgressDialog
dialog
; public View onCreateView(LayoutInflatersavedInstanceState) View view = inf
浏览 5
提问于2015-09-10
得票数 1
回答已采纳
1
回答
将Firebase和AlertDialog放在单独的类中
android
Bundle savedInstanceState) { setContentView(R.layout.
activity
_mainLayoutInflater inflater = getLayoutInflater(); super.onC
浏览 2
提问于2017-05-05
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Activity 基础总结
Activity初窥门径
Activity登堂入室
外部开启Activity新姿势
你应该掌握了解的 Activity
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券