Sample code for this post can be found at https://github.com/petermajor/SearchViewLayout
A year ago I wrote a post where I demonstrated embedding Java code in a Xamarin application. While the concept was pretty cool it was a contrived example.
I recently came across a Android Library written in Java that I considered using in my application. So here is an example of using a real-world Java library in a Xamarin Android application.
I wanted to have a search box in a toolbar. When a user taps on the search box it would expand and allow the user to type in the box.
This behavior can be seen in Google Maps and the Android Phone application. Fortunately for me, a very talented developer has already created an Android library to implement this behavior: