How to convert dp to px in xamarin.android?
问题 I want to convert dp to px in my C# code in xamarin.android , but all I could find were java codes in android studio that have some problems in xamarin . I tried to use equivalent like using Resources instead of getResources() and I could solve some little problems, but there are some problems yet that I couldn't find any equivalent for them. here are original codes, my codes, and my codes problems in xamarin: First code (found from Programatically set height on LayoutParams as density