Android :: PopUpWindow Not Displaying When Tapping On Marker

Jun 18, 2010

I am displaying google map and on top of that some overlay items(Markers) are there. When tapping on the markers, I need to display PopUpWindow. The code is executing but popup is not displaying.

popUp.showAtLocation(layout, Gravity.TOP, 0, 0); popUp.setFocusable(true); popUp.setTouchable(true); popUp.setOutsideTouchable(false); popUp.update(0,50, 320, 70);

Here layout is an object of LinearLayout.

I created another android application, in that, I put the above code and its working perfectly. PopupWindow is displaying.

Android :: PopUpWindow not displaying when tapping on marker


Android :: Displaying Information Box When Clicked On A Map Marker

Nov 15, 2009

I am looking for code examples of how to draw a description box when clicking on a map marker. Something similar to google map's implementation - http://code.google.com/apis/maps/documentation/examples/icon-custom.html (Click on the marker to see an example)

View 4 Replies View Related

Android :: PopupWindow Does Not Show / Way To Fix?

Jul 14, 2010

I intend to show this as a dropdown just below the button that drops this down.

View 2 Replies View Related

Android :: Use GridView In PopupWindow?

Nov 10, 2009

I am having a similar issue while trying to use a GridView in a PopupWindow. On my Activity's onCreate method, I am inflating a gridview from xml as follows:

CODE:......................

I would like this GridView to popup on a button click. Also inside of my activity's onCreate,

I have:

CODE:............

On button click, I am throwing a ClassCastException from GridView.onMeasure(int, int).

View 4 Replies View Related

Android :: AlertDialog Or PopupWindow ?

May 20, 2010

http://img139.imageshack.us/img139/1203/devicei.png

I've seen this in a few apps, and i have expiremented with both PopupWindow, and AlertDialog and I was confused which this was.

View 1 Replies View Related

Android :: PopupWindow Class Using V2.0?

Dec 28, 2009

I looked online and was not able to find a working example of the PopupWindow class. The code examples I found online either compile but do not work, or are using methods which have since been removed (such as Activity.getViewInflate()). Is there a simple working example that displays a PopupWindow?

View 3 Replies View Related

Android :: PopupWindow On Activity Start

Feb 21, 2010

I am trying to make a PopupWindow show straight away when an activity has started.

when calling public void showAtLocation (View parent, int gravity, int x, int y)

I get the exception ERROR/AndroidRuntime(2500): Caused by: android.view.WindowManager $BadTokenException: Unable to add window -- token null is not valid; is your activity running?

At the moment I am calling from onCreate, but when calling from onStart or onResume it still gives the same error.

The activity api says the activity is supposed to be running after onResume is called. Where is the best place to load up the PopupWindow if it needs to be done straight away?

At the moment It looks like Activity.onWindowFocusChanged() is the best place.

View 2 Replies View Related

Android :: PopupWindow To System Desk Or Other App?

Sep 17, 2010

How can i put my PopupWindow to system desk or other app? how can i use this permission:INTERNAL_SYSTEM_WINDOW

View 2 Replies View Related

Android : PopupWindow - Want To Control Size?

May 27, 2010

I've experimented with a PopupWindow, but don't have a very good way of controlling its size. It only responds to absolute pixels.

View 3 Replies View Related

Android : How Can I Add An Edit Text On A PopupWindow?

Nov 9, 2010

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?

View 2 Replies View Related

Android :: PopupWindow With Some Enter/exit Animations

Mar 1, 2009

i tried to use my popupWindow with some enter/exit animations - it has setAnimationStyle() method for that purpose. after some time i realized i cannot use my own custom animation styles which is ok but a bit limiting. so i tried system ones: R.style.Animation_Toast works ok, but R.style.Animation_Dialog doesn't. looking at xml definition files i found that Toast animation uses simple alpha animation and Dialog animation is a set of alpha combined wit scale animation. is it a problem for WindowManager to deal with complex animations?

View 3 Replies View Related

Android :: Cannot Execute OnItemClick For GridView In PopupWindow

Jan 21, 2010

I have a gridView that I display in a popupwindow (the gridview is in a transparent layout, which inherits from linearlayout and just has a partially transparent background). I can never get this GridView's OnItemClick to execute. When I touch an image in my gridview it appears to be clicked (image bachgrond changes), but OnItemClick is not being called.

Below is the code for my Adapter and my popupview containing the gridView.

CODE:................

View 2 Replies View Related

Android :: Can't Intercept The OnTouch Event Of PopupWindow

May 26, 2009

I want to intercept the OnTouch event in a PopupWindow, but it failes everytime. Here is the code snip:

CODE:.....................

When the activity started, I can click the button to show the popup window correctly. But after that, nothing happens when I touch the popup window's view. But if I touch any where outside the popup window, the log Log.d("Demo", "layout::onTouch >>> view: " + v + ", event: " + event); will work.

It looks like when I touch the view of the popup window, the touch event has been consumed somewhere?

View 2 Replies View Related

Android :: PopupWindow Can't Be Dismissed When Press Back Key

Jun 4, 2010

I've created a custom PopupWindow but when I press back button, the window doesn't dissapear.

View 3 Replies View Related

Android :: Show Soft Keyboard On PopupWindow?

Oct 12, 2010

I am using PopupWindow class and on PopupWindow i have one EditText,my problem is that when PopupWindow is visible and i click on EditText at that time Soft Keyboard is not visible and i am not able to enter Input. So anybody tell me how to solve this problem?

View 2 Replies View Related

Android : Droid PopupWindow Blur / Dim Background?

Jul 11, 2010

I would like to be able to either blur or dim the background when I show my popupwindow using popup.showAtLocation, and unblur/dim the background when popup.dismiss is called.

I have tried applying layout params FLAG_BLUR_BEHIND and FLAG_DIM_BEHIND to my activity, and this appears to just blur and dim the background as soon my app is started.

View 1 Replies View Related

Android :: PopupWindow With GridView - Trouble With Inflating View

Nov 11, 2009

I am having an issue while trying to use a GridView in a PopupWindow. On my Activity's onCreate method, I am inflating a gridview from xml as follows:

CODE:.........

Would like this GridView to popup on a button click. Also inside of my activity's onCreate,

I have:

CODE:...........

On button click, I am throwing a ClassCastException from GridView.onMeasure(int, int).

View 1 Replies View Related

Android :: Live Wallpapers - Cannot Get Actions By Tapping

Feb 10, 2010

Can't get actions like: # android.wallpaper.tap # android.home.drop
I tried on Cube Wallpaper example by adding to CubeEngine class:
@Override public Bundle onCommand(String action, int x, int y, int z,
Bundle extras, boolean resultRequested) {
System.out.println("action" + action);
return super.onCommand(action, x, y, z, extras, resultRequested);}
No actions happens by tapping dropping and etc.

View 5 Replies View Related

Android :: Logic Different Between Using Keypad - With Finger Tapping?

Jun 19, 2009

I have a ListView. When I click a row Item (which are just TextView instances) I want them to remain hilighted (default orange color). The default behavior is that they flash orange.

Strangely, if I use the key pad (arrow up/down) to move between items, it has the exact behavior I want. Why is the logic different between using the keypad or with finger tapping?

View 7 Replies View Related

Android :: MediaController Appears Only After Tapping In Droid?

Sep 20, 2010

I am writing an Android App where I am playing video using VideoView,but the mediaController appears only after tapping the screen.Is this correct procedure ? If not how can we make it to appear without tapping on the screen.

View 2 Replies View Related

Android :: How To Display A Bubble When Tap On Marker?

Oct 27, 2010

I was wondering how can I display a bubble (a bubble like when you use Google map and you click on a marker there is that bubble that appear with a picture ans some informations) when I tap on one of my Marker that are on my Android Google map?

View 2 Replies View Related

Android :: Get OnClick() Event From Marker Int Map?

May 20, 2010

i want to add a marker to a position int the map ,so i add a image through canvas by overwrite overlay .But i want to get the other activity through clicking the image,who can tell me what can i do?

View 2 Replies View Related

Android :: Gps Marker On Google Maps

Oct 12, 2010

I am developing an application which shows the current location of the user. I want to display a marker on the current location of the user.

I have used an image as marker to display current location. But i want to display an animated arrow showing the range just like in the google maps android app. Can anyone please tell me how to achieve this.

View 1 Replies View Related

Android :: Create Map View With A Marker?

Sep 1, 2009

Can any one help to create map view with a marker.

When we are clicking marker it should display info window.

By clicking that info window it shoul goto another layout.

View 5 Replies View Related

Android :: How To Drag Marker Objects In A MapView?

Jun 4, 2009

Hey Is it easy/possible to drag marker objects in a MapView?

View 10 Replies View Related

Android :: Drag Marker On Map / Handle It In OnTouchEvent()?

Oct 15, 2010

How can I drag a marker on the map?
How to handle it in onTouchEvent()?

I had written one code that actually drags. But it feels like the map is moving instead of the marker. That code is...

View 1 Replies View Related

Android :: Add A Dialog - Window In Map When Click Marker?

May 21, 2010

I want to add a dialog or a window in the map when click the marker as folows?but i don't know what to do. Does put the dialog int the Overlay or MapView?

View 12 Replies View Related

Android :: Draw Marker In Runtime / At On LocationChange?

Sep 7, 2010

It is possible to draw markers in runtime or at onLocationChange event, not on Create event?

View 1 Replies View Related

Android :: Marker Icon Not Showing Up But Clickable / Fix This?

Aug 25, 2010

I've got the following code which gets information from a database and plots it on a map. The information is there and clickable but the actual icon androidmarker is not visable. Why? How do I fix this? code...

View 1 Replies View Related

General :: Go To The Top By Tapping On Task Bar?

May 1, 2014

Is there a way to go to the top of a page in Chrome, by using a single tap? In iOS Safari this can be done by tapping on the top bar. The page will go to the top immediately. With Chrome I have to manually scroll up to the top of a page.

Actually the question is not only about Chrome, it's about Android in general. How can I have this functionality in the Mail.app for example? I have only seen that in the Blinkfeed of the HTC One M8 only.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved