Comments (6)
Hi. Could you share the whole layout xml + the Pixelshot code?
from quickshot.
I also encounter this problem. I use a cardview as container in my item layout, when I drag this item the shadow of the cardview disappear. then, I finde this method:
private Bitmap createDraggingItemImage(View v, NinePatchDrawable shadow)
I thinke this method return a bitmap without this shadow ,meybe cause the problem. this shadow param is null.
from quickshot.
Hi. Could you share the whole layout xml + the Pixelshot code?
At first it seemed to me that the problem was in the CardView, but actually a blank card is working fine.
The problem appears when I place RecyclerView inside the card.
`
<androidx.cardview.widget.CardView
android:id="@+id/card_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:innerRadius="0dp"
android:shape="ring"
app:cardElevation="0dp"
app:cardCornerRadius="75dp">
<FrameLayout
android:layout_width="150dp"
android:layout_height="150dp">
<androidx.recyclerview.widget.RecyclerView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:overScrollMode="never"
android:clickable="false"
android:focusable="false"
android:id="@+id/recycler_view"/>
</FrameLayout>
</androidx.cardview.widget.CardView>
`
Using library like this: PixelShot.of(root_view).toPNG().save()
from quickshot.
@Letscoder I will take a look at it here in the weekend
from quickshot.
Hi @Letscoder. Have you managed to fix it?
from quickshot.
No, it seems internal problem with canvas rendering, so it doesn't work even ouside of the library.I've just used Glide circle filter to resolve this.
from quickshot.
Related Issues (20)
- WRITE_EXTERNAL_STORAGE permission HOT 2
- cannot capture a webview contents HOT 7
- Please make library for Xamarin forms HOT 1
- FileNotFoundException on Emulator HOT 10
- of(bitmap) not working because of this HOT 5
- how to use this library to take full screen screenshot
- Path is not useful in api 29-android 10 HOT 2
- Expose exception data in OnQuickShot failed? HOT 2
- Save full views (not only visible parts) HOT 4
- Get the absolute path to the image HOT 1
- couldn't create bitmap of the surfaceview HOT 2
- width and height must be > 0 HOT 1
- Getting error in QuickShotListener
- Getting black screen capture with CameraView HOT 4
- 大佬这个干嘛的? HOT 1
- Resources not found during linkage HOT 5
- Any plans for backporting to api 14+? HOT 1
- can capture camera surface view? HOT 1
- Wrong logic for save file HOT 2
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 quickshot.