在Imageview中只有androidstudio没有在模拟器或手机中(Image in Imageview only androidstudio no in emulator or phone)
我对图像有一个疑问。
当我在2.2.0上使androidstudio工作后,如果我编辑xml文件,所有的imageview只能在androidstudio中生成图像。 但如果启动应用程序在genymotion或启动apk中的电话图像不显示。
<ImageView android:layout_height="40sp" app:srcCompat="@drawable/additem_button" android:id="@+id/imageView36" android:layout_weight="1" android:scaleType="fitXY" android:layout_width="51sp" android:layout_gravity="right" /> </FrameLayout>我有在ldpi,mdpi,hdpi,xhdpi,xxhdpi,xxxhdpi中的所有图像,但我只启动应用程序xxhdpi手机,并没有新的图像浏览运行...请如何解决这个问题..谢谢..
I have a problmem with images.
After I ubdate androidstudio on 2.2.0 all imageview which build have image only in androidstudio if i editing xml file. but if start app in genymotion or launch apk in phone image not show.
<ImageView android:layout_height="40sp" app:srcCompat="@drawable/additem_button" android:id="@+id/imageView36" android:layout_weight="1" android:scaleType="fitXY" android:layout_width="51sp" android:layout_gravity="right" /> </FrameLayout>I have all images in ldpi,mdpi,hdpi,xhdpi,xxhdpi,xxxhdpi, but I launch app only xxhdpi phones and run without new imageviews... please How resolve thise problem..Thanks..
最满意答案
我尝试这个并且运行良好。
<ImageView android:layout_height="40sp" android:src="@drawable/additem_button" android:id="@+id/imageView36" android:layout_weight="1" android:scaleType="fitXY" android:layout_width="51sp" android:layout_gravity="right" />I try this and run good.
<ImageView android:layout_height="40sp" android:src="@drawable/additem_button" android:id="@+id/imageView36" android:layout_weight="1" android:scaleType="fitXY" android:layout_width="51sp" android:layout_gravity="right" />更多推荐
发布评论