Comments (1)
may be this will solve` private Bitmap loadLargeBitmapFromView() {
View v = getView();
Bitmap b = Bitmap.createBitmap(v.getWidth(), v.getHeight(), Bitmap.Config.ARGB_8888);
Canvas c = new Canvas(b);
v.layout(0, 0, v.getLayoutParams().width, v.getLayoutParams().height);
v.draw(c);
return b;
}`
` private Bitmap getBitmap() {
Bitmap bitmap = null;
if (isCrosswalk) {
try {
TextureView textureView = findCrosswalkTextureView((ViewGroup) getView());
bitmap = textureView.getBitmap();
} catch(Exception ignore) {
}
} else {
View view = getView();
if(view.getDrawingCache()==null)
{
bitmap = loadLargeBitmapFromView();
}
else
{
bitmap = Bitmap.createBitmap(view.getDrawingCache());
}
// bitmap = Bitmap.createBitmap(view.getDrawingCache());
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR1) {
bitmap.setHasAlpha(false);
}
view.setDrawingCacheEnabled(false);
}
return bitmap;
}
`
from nativepagetransitions.
Related Issues (20)
- IOS- CSS transforms ignored during screenshot HOT 1
- Modal transition effect HOT 1
- In iOS11 when I click the more button to jump straight fast will be stuck phenomenon
- Native transition with ionic on real device HOT 5
- Race conditions when quickly starting and completing pending transitions. HOT 1
- slide transition screenshot showing artifacts after some time HOT 2
- findCrosswalkTextureView function returns null
- How to set this work?
- Page hangs after transition on Android HOT 6
- Reset navigation History
- 是否支持wkwebview?
- Page flips twice on IOS
- Use nativePageTransitions on Ionic 4 beta HOT 2
- cordova-plugin-camera-preview toBack = true not working
- Error: exec proxy not found for :: NativePageTransitions :: curl
- NativePageTransitions still using UIWebView instead of WKWebView HOT 4
- Is it possible to clear the old screenshot?
- Buggy on older devices
- NativePageTransitions.getBitmap crash
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 nativepagetransitions.