popupwindow

I my using google mapV2 and i m downloading image from google place api and want to display in the popup

北城以北 提交于 2019-11-27 22:50:44
问题 i m using all the classes for geting image through Url. ImageView imV= ((ImageView) view.findViewById(R.id.badge)); // Image url String image_url = "http://maps.gstatic.com/mapfiles/place_api/icons/cafe-71.png"; final int stub_id = R.drawable.ic_action_search; // ImageLoader class instance ImageLoader imgLoader = new ImageLoader(getApplicationContext()); // whenever you want to load an image from url // call DisplayImage function // url - image url to load // loader - loader image, will be

EditText On A Popup Window

不羁的心 提交于 2019-11-27 21:23:33
I am developing on Android 2.2 using Java. I put an editText on a PopupWindow and it's not working. It acts like a disabled edit text, clicking on the edit text won't show the soft keyboard. How can I add an edit text on a popupWindow? Just try: AlertDialog.Builder alert = new AlertDialog.Builder(this); alert.setTitle("Title"); alert.setMessage("Message"); // Set an EditText view to get user input final EditText input = new EditText(this); alert.setView(input); alert.setPositiveButton("Ok", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int whichButton) { /

How to display an existing ListFragment in a DialogFragment

懵懂的女人 提交于 2019-11-27 16:33:26
问题 I have the following problem: I have an exisiting ListFragment , but I would like to display this as a dialog. My first approach was to create a DialogFragment which has to ListFragment inside of it, but appearently it is currently not possible to put fragments in fragments. Extending DialogFragment instead of ListFragment is also not possible, because of the heavy use of ListFragment methods. Is there an easy way to do this? 回答1: What works for me is 1) in xml layout for your DialogFragment

how to make window.open pop up Modal?

北城余情 提交于 2019-11-27 16:31:09
问题 I am currently using window.showModalDilog to open a modal pop up window which is not allowing the parent window to do any action. But in the google search, I found that it is not the standard method and various browsers has stopped supporting this function. In fact I am facing this problem in Opera. Opera gives me the javascript error and stops execution at that point. Nothing can happen after that error. So, I have only one option left and that is window.open. But I want to disable parent

Using JQuery to Access a New Window's DOM

点点圈 提交于 2019-11-27 15:30:22
I am creating a new window that will contain text that user will print. I would like to do something similar to this: var new_win = window.open(); $(new_win.document).html("Test"); In this case you are trying to access a dom wich has no jQuery enhancement. You need to first load a jquery.js into this document. If done the syntax would be. var popup = window.open('/some/url.html'); popup.document.$('body').html('test'); But be very careful, in multi document management and communication are many bugs and inconveniences between the many different browser versions and vendors. It would really be

Selenium webdriver selecting new window c#

☆樱花仙子☆ 提交于 2019-11-27 15:04:49
问题 Trying to write some test cases using selenium webdriver in c# and have a scenario which i'm unsure of how to resolve user scenario is searching a table for a patient, select a patient then a new window opens and then assert various items on the window my issue is i'm unable to select the new window to assert anything from, it's not a pop-up window, it's a full new browser window but it has no window title/name to identify it by, how would I be able to switch driver focus to this window?

Open new tab without popup blocker after ajax call on user click

坚强是说给别人听的谎言 提交于 2019-11-27 11:27:30
I have a page that enable user to perform image manipulation via HTML5 canvas, on the page, there's a facebook share button for sharing a generated image of the canvas on facebook. When the link is clicked, an ajax request is sent to the server (ASP.NET MVC) to perform the image generation, save the image on the server, then generate a url(that links to the image) that is returned as the ajax response. The returned url is what I want to pass as the parameter for facebook to share. The issue is that popup blocker is blocking facebook share dialog when I call "window.open". Is there any other

Android Custom PopupWindow/Dialog

心已入冬 提交于 2019-11-27 11:23:46
I'm trying to get a completely custom Dialog or PopupWindow, without any of the default Android UI controls (title, background, buttons, whatever). Is this possible at all? I've spent hours searching for this, but no luck... It seems like this should be easily possible, but I can't find it. Preferably this would be by inflating a View from XML, but at this point anything that would just work would be nice. Thanks. benvd Steps I took: Create a class extending Dialog . In the onCreate, call setContentView(x, y) with x being your R.layout and y being R.style.popupStyle (see below). In your res

Android popup window not filling screen size?

▼魔方 西西 提交于 2019-11-27 09:14:08
I am trying to make a simple pop up window. But every time I make one, it ends up being super small...and not the length I want it to be. This is how the pop up looks: Here is my layout for the pop up: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/popup_element" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#444444" android:padding="10px" android:orientation="vertical"> <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout

Browser window popups - risks and special features

眉间皱痕 提交于 2019-11-27 07:06:27
问题 1. What exactly is the security risk with popups? The new browsers provide settings to block window popups (on blocking, sites with active popups display a message to user). What exactly is the security risk with popups? If allowing popups can execute something dangerous, then the main window can too. Is it not the case. I think I don't know about some special powers of window popups. 2. Any special features of popup windows? Take for example the HDFC bank netbanking site. The entire