Android多尺寸屏幕和Android中的mipmap图像
我有一个问题,在我的项目,在这个项目中包括所有布局文件夹的多尺寸应用程序 布局: layout/fragment_second.xml 布局大/fragment_second.xml/ 布局xlarge/fragment_second.xml 布局小/fragment_second.xml 和在所有mipmap文件夹中复制的图像: mipmap hdpi/大约大小:106*106像素 mipmap mdpi/大约大小:68*68像素 mipmap xhdpi/大约大小:130*130像素 mipmap xxhdpi/大约尺寸:210*210像素 mipmap xxxhdpi/大约尺寸:260*260 p 在imageview中加载:Android多尺寸屏幕和Android中的mipmap图像,android,android-layout,mipmaps,Android,Android Layout,Mipmaps,我有一个问题,在我的项目,在这个项目中包括所有布局文件夹的多尺寸应用程序 布局: layout/fragment_second.xml 布局大/fragment_second.xml/ 布局xlarge/fragment_second.xml 布局小/fragment_second.xml 和在所有mipmap文件夹中复制的图像: mipmap hdpi/大约大小:106*106像素 mipmap mdpi/大约大小:68*68像素 mipmap xhdpi/大约大小:130*130像素 mip
<ImageView
android:id="@+id/img_menu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@mipmap/about"
android:layout_centerHorizontal="true" />
问题是:不要使用不同大小的其他图像,只使用hdpi文件夹 我在很多设备上测试了这个应用程序,但我无法解决它 舱单:
<supports-screens android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true" />
如何解决这个问题
谢谢你首先,请把你的问题说得更清楚些,用恰当的英语,这样别人就更容易理解你的意思了 现在,对于您的问题,mipmap仅适用于启动器图标。对于其他所有内容,请使用drawable。原因是,一些制造商使用的图标密度不同于屏幕的图标,也就是说,使用更大的图标。因此,当您希望图像能够正确缩放时,mipmap没有任何用处。Drawables是您的朋友,请寻求他们的帮助
PS:如果你能更详细地说明你的问题,我可以更好地帮助你。“问题是:不要对不同大小的图像使用其他图像,而只使用hdpi文件夹”你能详细说明吗?如果你将所有内容都放在drawable文件夹而不是mipmap文件夹中,效果会有所不同吗?我相信mipmap文件夹是用于图标的。我怎样才能解决我的问题?很乐意帮忙。接受我的答案,这样其他人也能从中受益:)