Dim Panel1 As Panel
Panel1.Initialize("")
Panel1.Color = Colors.Blue
Activity.AddView(Panel1,20dip,20dip,300dip,300dip)
Dim cd As ColorDrawable
cd.Initialize(Colors.Blue,10) 'corner radius = 10 ... set to 0 for no rounded corner
Dim Panel1 As Panel
Panel1.Initialize("")
Panel1.Background = cd
Activity.AddView(Panel1,20dip,20dip,300dip,300dip)
Hi .. Are you changing the panels background property ? .. Adding a panel in code results in no rounded corners here unless purposely set....
mjtaryan said:I am adding a panel to an app in code. The panel is not to have rounded corners.
Dim Panel1 As Panel
Panel1.Initialize("")
Panel1.Color = Colors.Blue
Activity.AddView(Panel1,20dip,20dip,300dip,300dip)
Dim cd AsColorDrawable
cd.Initialize(Colors.Blue,10) 'corner radius = 10 ... set to 0 for no rounded cornerDim Panel1 AsPanel
Panel1.Initialize("")
Panel1.Background = cd
Activity.AddView(Panel1,20dip,20dip,300dip,300dip)
Dim Panel1 As Panel
Panel1.Initialize("")
Panel1.Color = Colors.Blue
Activity.AddView(Panel1,20dip,20dip,300dip,300dip)
dualznz said:the code that you have provided is for a non cornered radius
mjtaryan said:I am adding a panel to an app in code. The panel is not to have rounded corners.
Dim cd AsColorDrawable
cd.Initialize(Colors.Blue,10) 'corner radius = 10 ... set to 0 for no rounded cornerDim Panel1 AsPanel
dualznz said:no in your code u were only creating a rectangle box panel without any radius
by default this is the case when coding the views
Correct again .. because that is what mjtaryan wanted .. A panel WithOut any radius
as I stated in #4 .. "if you add a panel by way of code by default it does NOT have rounded corners"
thats it from me .. lol
Cheers mj