私はAndroid Asset Studioで画像を作成しました。これは、drawable-hdpi、drawable-mdpi、drawable-xhdpi、drawable-xxhdpi、drawable-xxxhdpiの各フォルダを含むzipファイルを与えました。各フォルダには、 。私はこれらのフォルダを私のアンドロイドプロジェクトのResources/drawableフォルダに貼り付けました。次に、私は作成しました:ImageViewをXamarin.Androidアプリケーションに配置する方法デバイスの画面サイズに応じてサイズを変更しますか?
<ImageView
android:src="@android:drawable/ic_ac_unit"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/imageView1" />
しかし何も画面に表示されません。 Googleではたくさんの例がありますが、Xamarin.Androidを使用してフォローしたときに動作しないため、Android搭載のJava用です。
[this](https://developer.xamarin.com/guides/android/application_fundamentals/resources_in_android/part_3_-_alternate_resources/Images/alternate-resources-vs.png) - [画像ソース]([ https://developer.xamarin.com/guides/android/application_fundamentals/resources_in_android/part_3_-_alternate_resources/) – Mohamed