Questions tagged [android-popupwindow]

The popupWindow is an AndroidView Container displayed on top of the current activity to show any view.

JavaDoc: http://developer.android.com/reference/android/widget/PopupWindow.html

362 questions
2
votes
0 answers

Need to set PopupWindow position as per screen

I want to set PopupWindow same as screen. Need to set PopupWindow arrow and message more button to opposite same direction. LayoutInflater inflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE); View customView =…
2
votes
2 answers

android popup window showAtLocation not working

I am trying to show a popup window at the specific view which is in recycler view but it is not showing at that position. This is what I did to show a transparent popup window: private void showPopup(View view) { LayoutInflater inflater =…
Shailendra Madda
  • 20,649
  • 15
  • 100
  • 138
2
votes
0 answers

PopupWindow overlapping textView

I'm linking a PopupWindow to a TextView placed inside a ScrollView but when the view automatically scrolls to show the virtual keyboard the PopupWindow completely overlap the text box. If I manually scroll the view with the keyboard shown the…
TheOni
  • 810
  • 9
  • 26
2
votes
1 answer

In which dimension are x/y offsets specified in showAtLocation() in PopupWindow?

I'm not sure if x and y parameters should be pixels of DensityIndependentPixels. I've tried to get this information from Android's documentation but there's no answer: After digging deeper I've only got more questions: The…
Marcin Wróblewski
  • 811
  • 1
  • 10
  • 25
2
votes
1 answer

display PopupWindow on top of RecyclerView Adapter layout item

I am displaying JSON data inside RecyclerView , I added long press action on RecyclerView item , which display PopupWindow. I want to display that PopupWindow on Top of each Recyclerview item when i long click on it. but PopupWindow only display on…
2
votes
2 answers

Glide loading some images but not all

I am facing a weird thing using Glide library( v4.2.0 with compile SDK 26) along with christbanes Photoview library. I'm able to load, display some images( size <300 Kb ) and able to perform zooming gestures with the Photoview library but not on all…
Masquerade
  • 3,580
  • 5
  • 20
  • 37
2
votes
2 answers

Handle click events in Adapter/ViewHolder

Currently: I'm implementing click events in my Adapter inside of onBindViewHolder, but I have noticed that the adapter positions get messed up when doing this. I done some research and found this, where he state: As for why it is better in the…
ClassA
  • 2,480
  • 1
  • 26
  • 57
2
votes
1 answer

How to show popup window above call screen in Android 7.0 version

I'm developing a kind of contact provider for android users. The main function is when someone calls to the phone (locked or non locked) it appears a popup window with some info about who is calling. The issue is that with android's version below…
2
votes
1 answer

how to set an animation while popupwindow changed location

How to set an translate animation to a PopupWindow while it's location changed. I have search many articles but almost is about the show animation and dismiss animation.I used PopupWindow.update() but it just work without animation.How can i do…
chenj
  • 21
  • 3
2
votes
2 answers

How do I display a popupwindow right above the place i touched on screen

I want to display a popup window in my code such that, no matter where I touch on the screen, the popup should show up right above the place I touch. Not sure, how to achieve this. This is my current popup window code: LayoutInflater inflater =…
user2386226
2
votes
0 answers

How to dismiss all popup windows in an Activity Android

I am trying to dismiss a popup window which was created in TextView class. The popup window is created as: PopupWindow mPopupWindow; mPopupWindow =new PopupWindow(mTextView.getContext(), null, …
2
votes
3 answers

Unable to Display PopupWindow message on Mobile

I am creating a PopupWindow message on onClick event of a ImageButton, I can see the PopupWindow message on Emulator but can't see it on mobile, I have tried many mobiles from API 17 to 23. I am not able to find the issue…
rookieDeveloper
  • 2,459
  • 1
  • 22
  • 44
2
votes
2 answers

On some Android versions ListView inside PopupWindow doesn't receive touch events when popup is not focusable?

Ok, I have the following requirements: An EditText in which if the user types @ a popup with suggestions appears The user can continue typing which will filter the suggestions The user can tap on a suggestion which will complete the entry and…
AXE
  • 8,335
  • 6
  • 25
  • 32
2
votes
1 answer

Display PopupWindow upon clicking a button?

Currently, I have a button, within a Linear Layout, like so:
2
votes
2 answers

Custom PopupMenu styles are being ignored

I've been struggling with PopupMenu styling, and after a lot of research, the process of creating a custom PopupMenu style for my theme seemed to be fairly straightfoward. For example the answer on this question seems like an easy way to change the…
NoChinDeluxe
  • 3,446
  • 1
  • 16
  • 29