How to add button to Chart (Xamarin.Android)


#1

Hello,

We are looking for a way to add a button to our Chart. We are using Xamarin.Android.

In iOS, it was a simple call to AddSubView but we can’t seem to find a way to do this in Android.

Could somebody help us out?


#2

Hi.

Our Android charts have not been designed explicitly to have View objects added to them directly. Typically, we recommend using them within a suitable container, which can also house other UI components as necessary. 

I’d like to mention that under the hood, our internal implementation of the ShinobiChart interface is indeed a ViewGroup, but it is not designed to have View objects added to it. For example, we offer no way of positioning any such Views. Furthermore, any such Views are unlikely to be measured and laid out by Android.

I hope this helps,

Kind regards,

Kai.