hi
I am new to Xamarin and device development, so bear with me if i don't use the correct naming.
I am having difficulties understanding the concept of creating a UI control in an Android Class Library.
This is not a real use case, but for simplicity i want to create a button in an Android Class Library to be able to use that button in several Xamarin solution.
I have seen that, when creating a Mobile App (Xamarin.Forms) solution it has an android project and an Xamarin forms project. The android project has a layout folder with some page designs. Instead of designing a whole page through the use of layouts, is it possible to only describe the design of a single button, in one of those layout xml files? A link to some god beginners documentation on how to use layout xml descriptions would be appreciated.
The second question is, how do i reference this specific button from another projects xaml page?
I have read an article on how to consume native views using Shared Asset Project, but if i use that approach, how do i use the SAP in a Xamarin forms project?
The only examples i have seen with SAP is that the android project loads the App.xaml object from the SAP rather than from an Xamarin forms App object and i would like to keep the Xamarin forms project for describing pages shared between different devices (ios, android)