-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with android Pie #12
Comments
this problem because you cant get real size drawable .
to :
|
@mhoseini967 I've also tried to use this on Android 9, but the clickable areas are way off. I noticed they are still there but like 1000px to the right and about 200px down? This is just an estimation. I made them show a dialogue, and they work fine in other devices with an older version of Android. I also tried setting directly the width and height of my picture:
but nothing. Other things I've tried: Any way to make this work on Android Pie? :-( |
So I just spent an entire afternoon going through this code and found the problem, |
Hello! |
Hi, the latest version is fully compatible with Android 9+, what issue are you experiencing? |
Hi! I wrote there [(https://github.com//issues/11)} I am use this!
Is correct? |
Hello! I do a new test today and dont work! WORK targetSdkVersion 26
DONT WORK targetSdkVersion 28 |
Hi, I have tried to implement these new changes and it still fails. Before changes, the clickable areas were not in the correct coordinates when I use WQHD+ display but work on all other resolutions on newest android. After changes, clickable images don't work at all on any resolution. Please help me work through this someone! Thank you in advance. |
What device/Android version are you running? |
ok. big problem solved. I had my drawables in mdpi - xxxhdpi folders. that was the problem all along. so i put my original drawables in a nodpi folder. Problem solved. |
That's great to know! Hopefully it'll help other users in the future.
|
Hi! Hi! https://drive.google.com/file/d/15Qx34ZiG8vrESZC87f2wtaHj2kmifGGN/view?usp=sharing `defaultConfig {
|
Hi Jorge or Lukas,
I hope you are doing well. I’ve been working on my app with the clickable areas image library and I have a question that maybe you can answer…. Is there a way to implement long clicks on the clickable areas image? I saw some references to long clicks in the code but wasn’t sure how to implement. Any thoughts?
Thanks in advance!
Tommy
… On Sep 28, 2020, at 7:55 PM, Jorge Quiroz ***@***.***> wrote:
Hi, I have tried to implement these new changes and it still fails. Before changes, the clickable areas were not in the correct coordinates when I use WQHD+ display but work on all other resolutions on newest android. After changes, clickable images don't work at all on any resolution. Please help me work through this someone! Thank you in advance.
What device/Android version are you running?
The changes I proposed are now merged so it should work without any modifications. I tried this code with several Samsung and Huawei devices on Android 9 and 10 and found no issues.
If you want to troubleshoot this yourself, show through terminal the values of imageWidthInPx and imageHeightInPx when getImageDimensions() is called and make sure the values match the actual dimensions of the drawable (which was the cause of this particular issue I encountered, as the code originally calculated dimensions dividing them by the display density however I found that after Android 9, .getBitmap().getWidth() as used in the code returns the actual size of the drawable so it was not necessary to divide by the display density. I added an if statement to check for API level/Android version so it still divides by the density when needed (Android 8 and earlier). If you make any changes or have more questions please do post them here, I used this library extensively for my college graduation project (Computer engineering) over the last few months so I became quite familiar with it. The original author is also around and promptly accepted my merge requests.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#12 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGCZY6SIZHR4FH2VWTN4NPTSIFEBFANCNFSM4GGVXUEQ>.
|
im trying to use it with API 28 - Android Pie and it's not working
The text was updated successfully, but these errors were encountered: