how can i get status bar height in xamarin.forms?
问题 I am trying to get status / action bar height in my application. I got some of how we can get it in native android. can we get status / action bar height in xamarin.forms ?if yes then how? please help if anybody have idea about it. 回答1: You can do this by creating your own dependency service. (https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/dependency-service/introduction/) In your shared code, create an interface for example IStatusBar: public interface IStatusBar