[Free/OS] Gradient Drawable Extension || Create beautiful background with Gradient Drawable

Can we change background of card view to gradients with this extension ?

1 Like

Very nice extension:v:
I will use it like I have mentioned in this post, thanks

Superb extension… Most valuable one…

I have tried your extension and the circle shape seems not to be circle:sweat_smile:

BLOCKS


(the black component is a circle card view)

This happens because the circle is not being set as a background of cardview. The function set drawable sets the background of the Linear Layout ( a container which holds card view ) and not the actual cardview.

@alessandropanzieri what is your card height and width

How can I solve it? :thinking:

I set them to “Automatic”

Try to set them equal with pixel for ex.200px by 200px

Yes now works and the circle shape is actually circle:slightly_smiling_face:
But the card view is not circle even if height and width are set both to 200px, but this is another issue and I will open another topic for this:+1:

1 Like

Nice extension

1 Like

2 posts were merged into an existing topic: [Freee/OS] Custom Image Extension || An extension for creating image in shape

how to use?

The documentation of all block is provided in the topic above. And also, there is a usage example is given that tells you how to use it on a vertical arrangement. Please read the topic first so you can understand the extension better.

blocks(4)

not changing color of component?

1 Like

It gives me an error: “Id not exists”.
I think I have to create an Id, but I don’t know how to do it.

You need to create the drawable first then you can use it on any layout and can customise it.

I have already posted the example in above post you can see there CreateDrawable block

it is very nice , Thank you
but i cant find the Extantion