Hello friends, today I am going to tell you how you will change the radius shape and color of any wedges and layout!
Any Layout ,Wedges,Button,Image Round In Sketchware
Friends, to give Round Shape to any button or wedges, you have to use moreblocks in Sketchware just follow me the step by step!
Step-1
First you set View Section Any wedges whose corner you want to round.
For Example
I'm Using Linear layout Wedge. Like you can see in image.
Step-2
Now You have to create a new block in the Event Section. Like You See in image.
After that you have to go to the new block which will you created and paste the code below.
_________________________________________________
android.graphics.drawable.GradientDrawable gd = new android.graphics.drawable.GradientDrawable();
gd.setColor(Color.parseColor(_c));
gd.setCornerRadius((float)_r);
gd.setStroke(2, Color.parseColor(_sc));
_view.setBackground(gd);
_________________________________________________
Step-4
After that you will have to go into the activity and then in the oncreate and you take moreblock component to set the hed that was created before it, then according to the image, color, stroke color, radius set. In theselect option, whatever you took in the wedges view section To round, select the same here.
Friends, I would like you to enjoy this blog and if you are worried about it, then definitely tell us.
Thanks For Supporting.........
Any Layout ,Wedges,Button,Image Round In Sketchware
Friends, to give Round Shape to any button or wedges, you have to use moreblocks in Sketchware just follow me the step by step!
Step-1
First you set View Section Any wedges whose corner you want to round.
For Example
I'm Using Linear layout Wedge. Like you can see in image.
Now You have to create a new block in the Event Section. Like You See in image.
Add moreblock
Step-3After that you have to go to the new block which will you created and paste the code below.
_________________________________________________
android.graphics.drawable.GradientDrawable gd = new android.graphics.drawable.GradientDrawable();
gd.setColor(Color.parseColor(_c));
gd.setCornerRadius((float)_r);
gd.setStroke(2, Color.parseColor(_sc));
_view.setBackground(gd);
_________________________________________________
Step-4
After that you will have to go into the activity and then in the oncreate and you take moreblock component to set the hed that was created before it, then according to the image, color, stroke color, radius set. In theselect option, whatever you took in the wedges view section To round, select the same here.
Friends, I would like you to enjoy this blog and if you are worried about it, then definitely tell us.
Thanks For Supporting.........
How To Round Linear Layout and Any Wedges In Sketchware
Reviewed by Anonymous
on
December 31, 2018
Rating:
Wow, wonderful. This is what I have been looking for.
ReplyDeleteGod bless you.
Not wonderful at all
ReplyDeleteIt's rubbish
You just show the code not how to create the block
The blocks are just number not string
Can you tell me? How to add rounded corners only at top left and top right?
ReplyDelete