title: How to create a camera view + a button to capture the photo in Xamarin.Forms?
body: <p>I am trying to find a solution for an android app which I can have both camera preview and a button created with Xamarin Forms (XAML) that when I click that button photo should automatically save in device gallery. After 2 days of research the only best solution I found is <a href="http:////https://github.com/UNIT-23/Xam-Android-Camera2-Sample/tree/master/Camera2Sample/Camera2Sample" rel="nofollow noreferrer">this</a>. Can someone please help me achieve this?</p>
  
  <p><a href="https://i.stack.imgur.com/IBTRg.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IBTRg.jpg" alt="enter image description here"></a></p>