Expand and Collapse EditText in Xamarin Android

Xamarin Logo

Expand and Collapse EditText in Xamarin Android

For One of my apps I needed to create an icon, which upon being clicked on it needed to expand and allow users to enter comments in EditText,
And upon being clicked on again, it would collapse.

Here is my solution:

LeaveComments.axml

LeaveCommentsActivity.cs in onCreate()

 

As simple as that! Let me know if you have questions

Leave a Reply