dialog

Selenium Webdriver - (Java) - working with HTML dialogs

我是研究僧i 提交于 2019-12-11 22:26:24
问题 Here is the situation: Click on Import file button (this action will upload a file). After file upload, then appears a popup (HTML popup). I used driver.switchTo().frame(1); to switch to that popup and click "Next" in that popup. Clicking Next will navigate user to second step in that popup. Click process commission button in that second step of popup. After clicking process commission button, then appears a new confirmation popup (HTML popup). I am not able to click yes in that confirmation

Android: Dialog themed activity not visible

六眼飞鱼酱① 提交于 2019-12-11 19:49:18
问题 I have an activity which, when started, needs to check if the user is authenticated. If not, I need to display an interface to authenticate. I do this with another activity, which has a dialog theme, and I start it in onResume() with flags NO_HISTORY and EXCLUDE_FROM_RECENTS. Everything works fine when starting the application for the first time. But I have a feature that resets login after some time, if the user is not in an activity. When I test this, I start the applicatio, enter the

Android Intent in Dialog box

夙愿已清 提交于 2019-12-11 19:45:21
问题 I'm new android developer so I need your help. I'm making a app in which a button action open a dialog box. Dialog box has a button. Can i intent on the button action? Kindly give some good possible ways. Thanks 回答1: you want to handle the "Ok" event and perform some action. You have a method to handle the dialog. public void displayAlertToChangeActivity(){ AlertDialog.Builder alert = new AlertDialog.Builder(this); alert.setTitle("title"); alert.setMessage("massage"); alert.setPositiveButton(

Custom Dialog ignoring the background in xml

纵然是瞬间 提交于 2019-12-11 19:41:32
问题 I created a custom Dialog like: Dialog hintDialog = new Dialog(c, R.style.DialogSlideAnim); hintDialog.requestWindowFeature(Window.FEATURE_NO_TITLE); hintDialog.setContentView(R.layout.hint_view_layout); Window window = hintDialog.getWindow(); window.setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT)); window.setFlags(WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE); window.clearFlags(WindowManager.LayoutParams.FLAG_DIM

How to refresh the ListView after change the data with the DialogFragment?

末鹿安然 提交于 2019-12-11 19:38:38
问题 I create a custom dialog with DialogFragment, and in the dialog, I can add some data to the SQLite database. Also, there is a listview in the main activity, which show the data of the SQLite. I want to refresh the listview when I add the data to the database from the dialog. However, I have some problems. I call the notifyDataSetChanged() in the onResume(), but the listview doesn't refresh when I dismiss the dialog. And if I press the home button and open the activity from the recent list,

Dojo - how to submit data using a Dialog form

别等时光非礼了梦想. 提交于 2019-12-11 18:41:58
问题 I would like to submit some values that a user enters in a Dialog-form. He clicks on the button, gives his name, first name, email and submit. When he submits, I would like to store these values in a DB. I have a php script that is supposed to get these values from the user... but I don't know how to send these values once submitted to my php script. Thanks for your help. ---php script------> so far just printing, no DB storing but printing is not working <?php $name= $_POST["name"];

How to line up intger output in custom Android dialog

人走茶凉 提交于 2019-12-11 18:10:50
问题 I am displaying integer data from an SQLite database using a SimpleCursorAdaptor. Everything shows up but the alignment is all wrong: The dialog looks like this: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ListView android:id="@+id/lvwScores" android:layout_width="wrap_content" android:layout_height="wrap_content"/> <Button android:id="@+id/btnOK "

returning value to a function in jquery dialog

拜拜、爱过 提交于 2019-12-11 18:04:45
问题 I am using jquery dialog box jquery. I have some condition in function. I have prepaid a demo similar like actual code it is working on local but however not working in the fiddle. What i want is when user click 'open box' then based on user selection we alter accordingly. But the problem is when user is clicking 'open box' is altering massage. It is not waiting till the user choose his selection. I want to do with function wait till user select his option then alert. fiddle <head> <link rel=

android | multiple onclicklistener in dialog

大兔子大兔子 提交于 2019-12-11 17:57:46
问题 Inside my Activity I start a simple dialog. final Dialog myDialog = new Dialog(this); myDialog.setContentView(R.layout.testing); ... My testing.xml Layout consists of nothing but 10 ImageViews, id`s are '1' to '10'. I want every ImageView to be clickable and to do something. The define the onclick() methode in the .xml file isn`t working, as the methode can't be found when the dialog is viewed. The only way I got it work is following: define 10 onclick-listeners: ImageView img_1 = (ImageView)

Adding interactive movie to Android application

孤人 提交于 2019-12-11 17:54:58
问题 I'm building a new application to the Android platform and I need to add an interactive movie that would show to the user, how to use the application. I want something like the video in Angry Birds, with the button that spreads to the outside of the dialog. Like this: First I though that I need some kind of a animation video, so I checked the Android video view, but I can't figure out how to use it, and if I actually need it? Secondly is this window is a regular dialog or something else? I