yaniv hanya Active Member Licensed User Feb 24, 2020 #1 Is there a way to change the radius of only two corners of a panel?
ac9ts Active Member Licensed User Longtime User Feb 24, 2020 #2 I'm not an expert but I would think you would need to put a squared panel on top of the rounded one. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 24, 2020 #3 Check this: https://www.b4x.com/android/forum/threads/image-with-corner.103103/#content Upvote 0
M Mahares Expert Licensed User Longtime User Feb 24, 2020 #4 klaus has a piece of code that will do just that for you in this thread: GradientDrawable with different corner radius? In "TabHostExtras1.setTabGradientDrawable2" I can set the corner radius for the GradientDrawable like described below: "Set a GradientDrawable as the background on all TabIndicators in tabHost1 Corner radii of the GradientDrawable are set individually (in pixels) based upon the number of... www.b4x.com Code: Activity.LoadLayout("Layout1") 'has a panel Panel1.Color=Colors.Red setCornerRadii(Panel1, 0, 0, 0, 0, 15dip, 15dip, 15dip, 15dip) Attachments Panel with 2 round corners.png 4.5 KB · Views: 679 Upvote 0
klaus has a piece of code that will do just that for you in this thread: GradientDrawable with different corner radius? In "TabHostExtras1.setTabGradientDrawable2" I can set the corner radius for the GradientDrawable like described below: "Set a GradientDrawable as the background on all TabIndicators in tabHost1 Corner radii of the GradientDrawable are set individually (in pixels) based upon the number of... www.b4x.com Code: Activity.LoadLayout("Layout1") 'has a panel Panel1.Color=Colors.Red setCornerRadii(Panel1, 0, 0, 0, 0, 15dip, 15dip, 15dip, 15dip)