X xhmeng Member Licensed User Longtime User Aug 31, 2018 #1 How to realize the rounded corner camera preview panel ?
BillMeyer Well-Known Member Licensed User Longtime User Aug 31, 2018 #2 Go to your Visual Designer, Select the Panel and Change the Corner Radius as desired. Or Programatically: B4X: Panel1.SetBorder(3,Colors.Red,5) Hope this is what you are looking for. Enjoy !! Upvote 0
Go to your Visual Designer, Select the Panel and Change the Corner Radius as desired. Or Programatically: B4X: Panel1.SetBorder(3,Colors.Red,5) Hope this is what you are looking for. Enjoy !!
X xhmeng Member Licensed User Longtime User Aug 31, 2018 #3 Is this B4i? The B4A panel does not have this property Upvote 0
BillMeyer Well-Known Member Licensed User Longtime User Aug 31, 2018 #4 My apologies - both are open on my Desktop. Here is B4a. but seems it cannot be done programatically. Upvote 0
My apologies - both are open on my Desktop. Here is B4a. but seems it cannot be done programatically.
Erel B4X founder Staff member Licensed User Longtime User Sep 2, 2018 #5 BillMeyer said: but seems it cannot be done programatically. Click to expand... It is possible. Create a ColorDrawable object and assign it to Panel1.Background. Upvote 0
BillMeyer said: but seems it cannot be done programatically. Click to expand... It is possible. Create a ColorDrawable object and assign it to Panel1.Background.
X xhmeng Member Licensed User Longtime User Sep 4, 2018 #6 I've tried it. ColorDrawable can't cover video . SurfaceView is different from normal View. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Sep 4, 2018 #7 You can put a panel with the frame above the preview panel. You can use B4XCanvas.DrawPath with a rounded rect to create the frame. Upvote 0
You can put a panel with the frame above the preview panel. You can use B4XCanvas.DrawPath with a rounded rect to create the frame.