How can I access screen width and height of Xamarin.Android device in the shared code? I could not use Resources. It could not find Resources in the given context.

To be clear, I want to show different uı design for different orientations(portrait and landscape). Hence I want to reach the tablets/mobilephones orientation in the shared code.

Here is my first question that asks is there a way for to check if it is landscape or portrait:
[A way to check if it is in the landscape or portrait mode in Xamarin.Android](https://stackoverflow.com/questions/45295538/a-way-to-check-if-it-is-in-the-landscape-or-portrait-mode-in-xamarin-android/45298001#45298001)

I think screen width and height of Android mobile in the shared code would help me.