Category: Issues & Solutions

Android ImageView not displaying image in few phones only

Issue: Android ImageView was not displaying image on Redmi Note Prime, when tested. But the same code when used in Redmi 4A shows image.  Image which was being used Solutions tried: Setting Image using XMLUsed:  android:src Setting image using Java codeUsed:  ImageView img;img = (ImageView) findViewById(R.id.startscreen);img.setImageResource(R.drawable.startimage); Setting background to different colourUsed: android:background Changing the background […]