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

Nice extension.

3 Likes

can this create circle image?

1 Like

Beautiful Extension Thanks For Your Contribution

1 Like

@Shatrudhn_Kumar There is already a extension for circular image view and this extension creates background not images

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.