Coder Social home page Coder Social logo

Rounded CardView problem about quickshot HOT 6 CLOSED

muddz avatar muddz commented on May 20, 2024
Rounded CardView problem

from quickshot.

Comments (6)

Muddz avatar Muddz commented on May 20, 2024

Hi. Could you share the whole layout xml + the Pixelshot code?

from quickshot.

lzhgreat avatar lzhgreat commented on May 20, 2024

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.

iVoider avatar iVoider commented on May 20, 2024

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()

How it is on screen:
Screenshot_2019-08-20-14-17-56-039_color pallete republic from image generator

How is is on screenshot:
1566298966038

from quickshot.

Muddz avatar Muddz commented on May 20, 2024

@Letscoder I will take a look at it here in the weekend

from quickshot.

Muddz avatar Muddz commented on May 20, 2024

Hi @Letscoder. Have you managed to fix it?

from quickshot.

iVoider avatar iVoider commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.