dialog

Have a “apprequests” notification redirect to a website

断了今生、忘了曾经 提交于 2019-12-13 07:58:10
问题 I have the FB request dialog (http://developers.facebook.com/docs/reference/dialogs/requests/) setup so my users can invite friends. Everything is working fine, it sends a notification to the user(s) and all, but I want to have it so that when the recipient clicks the notification or 'jewel' it takes them to my website instead of a FB page/app. 回答1: At the moment it's not possible to set the redirect uri on a request. The only way to do this is to have a js redirect on you application canvas.

How to remove title from custom dialog?

有些话、适合烂在心里 提交于 2019-12-13 07:57:12
问题 I implemented a layout in order to be my custom dialog layout like this: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="@color/gray_back" xmlns:android="http://schemas.android.com/apk/res/android"> <LinearLayout android:id="@+id/mainLayout" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="20dp" android:layout

hide qdialog and show mainwindow

烂漫一生 提交于 2019-12-13 07:46:16
问题 I have a Qdialog in which i get some inputs to use on my mainwindow. so it must appear first than mainwindow. the problem is that my mainwindow does not show up. here's my main.cpp #include <QtGui/QApplication> #include "planevolume.h" #include "dialog.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); Dialog *dialog= new Dialog; dialog->show(); planevolume mainwindow; bool dialogcheck = dialog->isHidden(); if (dialogcheck==1) { mainwindow.show(); } else { } return app.exec()

StartActivityForResult from Fragmnet

老子叫甜甜 提交于 2019-12-13 07:28:08
问题 I have two ImageView and two buttons. When button pressed - Dialog started. Positive answer - picture from galery, negative - from camera. First i write this in Activity(this code is work good): @Override protected void onActivityResult(int requestCode, int resultCode, Intent imageReturnedIntent) { String path = null; if (DialogFlag == 0) { super.onActivityResult(requestCode, resultCode, imageReturnedIntent); switch (requestCode) { case GALLERY_REQUEST: if (resultCode == RESULT_OK) { Uri

Espresso tested view is below dialog and therefore Espresso can't find it

て烟熏妆下的殇ゞ 提交于 2019-12-13 07:27:20
问题 I want to verify that there's a view on the UI that mathces some arbitary text. Therefore I'm using: onView(withId(R.id.my_view_id)).check(matches(withText("my text"))); The problem is though that depending on the battery level of the device there might be a dialog saying that the battery level is low. The dialog that will be shown is a normal AlertDialog . My test runs fine if I don't show the dialog, the moment I'll show it the above espresso statement fails. How can I tell espresso that I

Polymer paper-dialog backdrop opacity?

☆樱花仙子☆ 提交于 2019-12-13 07:20:24
问题 I have a paper-dialog in my Polymer element. I want to make the backdrop opaque, right now it is semi-transparent. I would also like to change the color. Does anyone know how to do it. I have already tried this css in my custom element: <style is="custom-style"> --iron-overlay-backdrop-opacity:1; </style> <paper-dialog modal></paper-dialog> But it had no effect. I also tried <style is="custom-style"> :host { --iron-overlay-backdrop-opacity:1; } </style> <paper-dialog modal></paper-dialog> 回答1

DialogProc function asking to declare it self static [duplicate]

橙三吉。 提交于 2019-12-13 07:15:53
问题 This question already has answers here : Non-static members not accessible in static function (4 answers) Closed 5 years ago . here is my createdialogparam function which is calling DialogProc function from here- HRESULT AMEPreviewHandler::CreatePreviewWindow() { assert(m_hwndPreview == NULL); assert(m_hwndParent != NULL); HRESULT hr = S_OK; m_hwndPreview = CreateDialogParam( g_hInst,MAKEINTRESOURCE(IDD_MAINDIALOG), m_hwndParent,(DLGPROC)DialogProc, (LPARAM)this); /here the dialog proc

How to make the switch button center in dialog

↘锁芯ラ 提交于 2019-12-13 07:09:40
问题 I want to switch button center in dialog,but it's failed... Why is this? Switch sw = new Switch(MainActivity.this); sw.setTextOn("start"); sw.setTextOff("close"); sw.setGravity(Gravity.CENTER_HORIZONTAL); AlertDialog.Builder myDialog = new AlertDialog.Builder(MainActivity.this); myDialog.setTitle("title"); myDialog.setMessage("message"); myDialog.setView(sw); 回答1: Try with below code Switch sw = new Switch(MainActivity.this); sw.setTextOn("start"); sw.setTextOff("close"); LinearLayout

Facebook dialogs are not displaying to there full height?

淺唱寂寞╮ 提交于 2019-12-13 06:27:41
问题 I am using different facebook dialog boxes on my external website(a kind of facebook application) for tasks like posting to feed, Sending app requests etc. Earlier all dialogs were displaying properly but from last couple of days I have been experiencing display issues as dialog are not displaying to there full height. I have tested on Chrome, Firefox and Safari browsers, at all places same issue.I even asked some of my friends to check at there places, as a result they are also facing the

How to create Edittext programmatically inside of DialogBox depends on Array size?

偶尔善良 提交于 2019-12-13 06:25:05
问题 I have created Dialog Box with 4 EditText. But now I need to do this by dynamically depends on API response JsonObject count. Here is my response: { "additional_charges":{ "1":"121324324", "2":"245657687", "3":"379809733", "4":"4467797894" } } If "additional_charges", has "1","2","3" ---> I have to show 3 Edittext. If "additional_charges", has "1","2","3","4" ---> I have to show 4 Edittext in Dialog box. How to do this? dialog.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk