dialog

App name displayed when finish() Dialog Activity

旧街凉风 提交于 2019-12-24 07:07:14
问题 I want to secure my app with a fingerprint authentication dialog activity, it works, but if I choose to close the dialog here is what happens : If I finish() the activity it flashes on the screen but it's still annoying. I am using android:theme="@style/Theme.AppCompat.Light.Dialog" theme. Is there any way to prevent this from poping up ? 回答1: Actually I just figured out why. It's because I was using AppCompactActivity . Using a simple Activity fixed the problem. 来源: https://stackoverflow.com

How to dismiss Custom Alert Dialog

廉价感情. 提交于 2019-12-24 06:40:51
问题 i have a Custom Alert Dialog , i have a imageView For close Dialog but i don`t know how to do it. I try to do it by dismiss or cancel, but it does not work public void onClick(View v) { final AlertDialog.Builder dialog = new AlertDialog.Builder(context); final View viewLayout = mInflater.inflate(R.layout.listview_addstudent_items , null); dialog.setView(viewLayout); ImageView closeIcon_img = (ImageView)viewLayout.findViewById(R.id.item_img_close); closeIcon_img.setOnClickListener(new View

Multiple Jquery dialogs on page using same classes

故事扮演 提交于 2019-12-24 06:34:54
问题 I have multiple places on my page where I want to open a jquery dialog boxes when a link is clicked. I am using class selectors so in theory I should be able to open each of them. My problem is that with the code I have it will only open the first dialog I click. Why is this??? //modal help div $('.dialogbox').dialog({ modal:true, autoOpen: false }); $(".modalhelp").click(function() { $('.dialogbox').dialog('open') }); The html: <a class="modalhelp" href="javascript:void[0]"><img src="images

jQuery Mobile - Dialogs without changing hash

亡梦爱人 提交于 2019-12-24 05:43:50
问题 I have a search dialog that I am popping up and filling with jquery templates. After they make a selection I set a value on the current page. As such I don't need hashTags or anything like that, I just need a pop-up dialog that I can open and close programatically. I am currently opening the dialog with $.mobile.changePage(dialog, { transition: "slide", changeHash: false }); and closing it with dialog.dialog('close'); However, in certain cases (when the page is navigated to), closing the

Custom Dialog Button called inside RecyclerView's onBindViewHolder

会有一股神秘感。 提交于 2019-12-24 05:35:41
问题 I'm trying to have the OnClick of the Custom Dialog remove and update the item clicked from RecyclerView. final Dialog rightDialog = new Dialog(context1); ... TextView textOKRight = (TextView) rightDialog.findViewById(R.id.text_ok); textOKRight.setText("NEXT"); textOKRight.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // MainAdapter.ViewHolder ccd = new MainAdapter.ViewHolder(itemView, listener); // ccd.removeCaller(); rightDialog.dismiss(); } });

Android custom dialog linearlayout size same as dialogs bg image

こ雲淡風輕ζ 提交于 2019-12-24 04:07:05
问题 I am creating a custom dialog as: Dialog myDialog = new Dialog(context, R.style.Theme_Levels); myDialog.setContentView(R.layout.levelselector); myDialog.show(); Style used: <style name="Theme.Levels" parent="@android:style/Theme.Dialog"> <item name="android:windowFrame">@null</item> <item name="android:windowIsFloating">true</item> <item name="android:windowBackground">@drawable/dlgbg</item> <item name="android:windowContentOverlay">@null</item> <item name="android:windowSoftInputMode"

how to return to previous activity from about with a button click?

爱⌒轻易说出口 提交于 2019-12-24 03:27:36
问题 Im trying to return from the about dialog to the main activity by a button click: public class AboutActivity extends Activity implements OnClickListener{ @Override protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.about); } @Override public void onClick(View arg0) { // TODO Auto-generated method stub SharedPreferences prefs = getSharedPreferences("com.example.tiocontas",MODE_PRIVATE); SharedPreferences.Editor prefsEditor = prefs

C# Show dialog over another dialog in winforms?

▼魔方 西西 提交于 2019-12-24 03:19:55
问题 I have a winforms application (C#) and in one of my forms, i have a dialog that adds some entity to a datagrid in the main form. In this dialog, i have validations that if they are invalid, those errors are showed in a new dialog.. my problem is that this error dialog shows on the back of the first dialog... how can i do to show the errors dialog over the first dialog? My form is something like this: MainForm----DataGridButton---Add entity---> OpenDialog1 ---> OpenDialog1-Validation --- On

dojo dijit.Dialog destroy underlay error

扶醉桌前 提交于 2019-12-24 03:09:10
问题 I have a class that extends dijit.Dialog but only to set default functionality and buttons for my site. When clicking the dialog's cancel button the following code is run: this.actionDialog.destroyRecursive(); this.actionDialog.destroy(); nb this.actionDialog = dijit.Dialog Sometimes (not always) the following error gets thrown: Uncaught TypeError: Cannot call method 'destroy' of undefined DialogUnderlay.xd.js:8 Which causes following dialogs to incorrectly display. I am using 1.5 from Google

DialogFragment behaving unexpectedly

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 03:03:58
问题 Hi I have used this DialogFragment to display date picker in my app public class DateDialogFragment extends DialogFragment implements DatePickerDialog.OnDateSetListener{ public DateDialogFragment() { } @Override public Dialog onCreateDialog(Bundle savedInstanceState) { Calendar cal=Calendar.getInstance(); int year=cal.get(Calendar.YEAR); int month=cal.get(Calendar.MONTH); int day=cal.get(Calendar.DAY_OF_MONTH); return new DatePickerDialog(getActivity(), this, year, month, day); } public void