Comments (6)
Why do you need Calculator
?
from fancyshowcaseview.
If you got OOM crash in createBitmap()
method, this is not about the FancyShowCaseView library. Something else may cause OOM. Can you give more details please?
from fancyshowcaseview.
Having similar issue here. Had some bitmaps in Spannable used in .title option, but removed them and same issue still pops up. Only experiencing this OOM on API 19 and on an emulator.
Code snippet:
fsv1 = new FancyShowCaseView.Builder(this)
.focusOn(findViewById(R.id.piece))
.title("test")
.build();
fsv2 = new FancyShowCaseView.Builder(this)
.focusOn(findViewById(R.id.target))
.title("Like here ---")
.build();
new FancyShowCaseQueue()
.add(fsv1)
.add(fsv2)
.show();
Here's the error:
java.lang.OutOfMemoryError at android.graphics.Bitmap.nativeCreate(Native Method) at android.graphics.Bitmap.createBitmap(Bitmap.java:810) at android.graphics.Bitmap.createBitmap(Bitmap.java:787) at android.graphics.Bitmap.createBitmap(Bitmap.java:754) at me.toptas.fancyshowcase.FancyShowCaseView.show(FancyShowCaseView.java:220) at me.toptas.fancyshowcase.FancyShowCaseQueue.show(FancyShowCaseQueue.java:43) at me.toptas.fancyshowcase.FancyShowCaseQueue.onDismiss(FancyShowCaseQueue.java:65) at me.toptas.fancyshowcase.FancyShowCaseView.removeView(FancyShowCaseView.java:474) at me.toptas.fancyshowcase.FancyShowCaseView$2.onAnimationEnd(FancyShowCaseView.java:340) at android.view.animation.Animation$3.run(Animation.java:374) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5001) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) at dalvik.system.NativeStart.main(Native Method)
from fancyshowcaseview.
@FridayShamblen I will remove the bitmap creation part. It is unnecessary. I think it will fix the OOM.
from fancyshowcaseview.
Thank you sir.
from fancyshowcaseview.
@saurabhdhillon @FridayShamblen I fixed it and released v0.1.3
from fancyshowcaseview.
Related Issues (20)
- Problem with custom views on ClickListener. HOT 3
- Not Possible to Change Focus Size when using .focusShape(FocusShape.ROUNDED_RECTANGLE) HOT 2
- Gravity issue in Rounded Rectangle shape
- EnableTouchOnFocusedView Not working in case of CustomView HOT 1
- Add focus size factor for rectangular shape HOT 14
- Consider migrating from jcenter HOT 1
- problem to focus on toolbar overflow menu items HOT 4
- mavenCentral() support HOT 1
- Slower focus animations HOT 6
- IllegalArgumentException in DecorCaptionView HOT 1
- using closeOnTouch(true),clicking the view multiple times quickly causes problems HOT 1
- Ability to Add custom view above, below and on sides of focused view HOT 10
- Problem in DialogFragment and BottomSheetDialogFragment HOT 2
- Set tiltle function does not work with custom view HOT 1
- How to add multiple highlighted areas HOT 1
- Focus on landscape has an offset HOT 2
- closeOnTouch set false make showcase skipped HOT 1
- Could not get .pom HOT 1
- ShowCase on BottomNavigation items HOT 2
- Is there an alternative/equivalent for Jetpack Compose ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fancyshowcaseview.