popup

Android Lollipop - Bypass lock screen for popup activity

血红的双手。 提交于 2019-12-03 22:19:55
I have Activity1 which is a list screen of items. Each item can be viewed in a separate Activity2 which is displayed as a popup. Activity1 can be launched from the background and displayed even when the screen is locked. Activity1 may also choose to automatically display the contents of an item in the list screen by starting Activity2 . We can bypass the lock screen because both activities have the WindowManagerFlags.DismissKeyguard enabled in the OnCreate method. Before Android Lollipop everything worked as expected. But now the popup Activity2 is not visible unless the device is manually

Soft keyboard's POPUP layout

微笑、不失礼 提交于 2019-12-03 20:46:13
问题 I'm developing a soft keyboard and doing well, but I don't know how to customize the popup layout for a long keypress. My KeyboardView: <?xml version="1.0" encoding="UTF-8"?> <android.inputmethodservice.KeyboardView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/keyboard" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:keyPreviewLayout="@layout/preview" android:keyBackground="@drawable/key

Display a Message When a Browser is Unsupported

孤街浪徒 提交于 2019-12-03 18:32:03
问题 I want to warn users of Internet Explorer 6 using my site, that IE6 has had serious compatibility issues with my site in the past. What is the best way to do this? Ideally, I want to have a message appear (not a new window, but a message box, if possible) that warns IE6 users of the issues and reccommends they update to either IE7, Firefox 3 or Opera 9.5. 回答1: If you want to determine if it's anything other than support browsers, you might want to use jQuery's browser detection, something

WPF Popup Alternative

守給你的承諾、 提交于 2019-12-03 17:52:42
问题 I have a window with a popup that pops when an item in a listview is double clicked. It centers to the main window and looks really nice floating there. The problem is when the user moves the main window or selects another program, and the popup floats on top of other stuff. I would like to have something like a popup, meaning that it floats on top of other elements in the window, but sticks with the main window when it moves (stays centered), and doesn't float on top of other programs. Can I

Angular bootstrap date-range-picker in a popup?

我与影子孤独终老i 提交于 2019-12-03 16:45:57
I am trying to show a date-range picker in my angular app using ng-bootstrap. My code looks like following: <ngb-datepicker #dp ngModel (ngModelChange)="onDateChange($event)" [displayMonths]="2" [dayTemplate]="t"> </ngb-datepicker> <ng-template #t let-date="date" let-focused="focused"> <span class="custom-day" [class.focused]="focused" [class.range]="isFrom(date) || isTo(date) || isInside(date) || isHovered(date)" [class.faded]="isHovered(date) || isInside(date)" (mouseenter)="hoveredDate = date" (mouseleave)="hoveredDate = null"> {{ date.day }} </span> </ng-template> How should I show the

Small Popup for Instructions, like foursquare ones

♀尐吖头ヾ 提交于 2019-12-03 16:44:55
问题 After seeing the last screenshots of new foursquare application and their balloon like cartoon instructions, I'd like to create some of these in my application. I found a similar question for iPhone Small popup for instructions... How? Here is another screenshot of foursquare app: I'd like to know how I could achieve that with Android. Thanks in advance for any help. UPDATE : This is what I could get so far but adding some buttons with a custom drawn background and layering them with a

FB.ui and setting popup size

被刻印的时光 ゝ 提交于 2019-12-03 16:27:14
I am using FB.ui with the display parameter set to popup. When the method is 'stream.publish', it autoresizes when the content is loaded. However, when using 'fbml.dialog' (in order to display a multi-friend selector) it shows a size that I'm not able to change (and the content is displayed cropped). I have tried with the following approaches, with no luck: FB.ui({ method: 'fbml.dialog', size: {width: 800, height: 500}, ... FB.ui({ method: 'fbml.dialog', width: 800, height: 500, ... Also I've been looking at the API source code, and it declares the method this way: Method declaration: 'fbml

how do I center javascript css popup div, no matter what the screen resolution?

本秂侑毒 提交于 2019-12-03 16:21:19
问题 I have the following code that opens a new popup window while disabling the background, the problem is that I have to position this so that it's 100px from the top (already got that through the CSS #dialog) and also in the center of the screen, no matter what the user's resolution is? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <script type="text/javascript"> function showPopUp(el) { var cvr = document.getElementById("cover") var dlg = document.getElementById

Set position (to right) of Qt QPushButton popup menu

倖福魔咒の 提交于 2019-12-03 16:14:33
I am writing a popup menu for a Qt push button widget. Whenever the push button is clicked, a menu pops up (below the push button). The popup menu is left-sided below by default. Are there any ways to make the popup menu to pop up on the right side below the push button? There is no set position function, so I wonder if there is some sophisticated way of doing it? Here is some code (for popup menu): QMenu *menuMode = new QMenu(this); min = menu ->addAction("In"); mout = menu ->addAction("out"); ui->pushButtonMode->setMenu(menuMode); //I am writing in MainWindow, that's there is ui This can be

Popup menu on click of a button in action Bar

假装没事ソ 提交于 2019-12-03 15:52:46
I am trying to implement an action bar in which one of the buttons on click shows a popup menu. Here's the menu. XML (menu items in the action bar) <menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/search" android:icon="@drawable/ic_action_search" android:orderInCategory="0" android:showAsAction="always" android:title="@string/menu_search"/> <item android:id="@+id/refresh" android:icon="@drawable/ic_action_refresh" android:orderInCategory="1" android:showAsAction="always" android:title="@string/menu_refresh"/> <Item android:id="@+id/popup" android:icon="