Closed ParthivMangukiya closed 6 years ago
This is happening because ic_launcher image is too big to render. Apk generator directly resize file by asuming that logo.png provided in sample is ldpi size and with reference to it generates mdpi,hdpi format. Whether should I make change in apk generator to resize logo image to size required for app OR should I make change in app to resize the image generated by apk generator?
The generator should already be resizing the images, it not, please fix the generator
@iamareebjamal I found that logo_url used in googleio17 sample is /images/io_logo.png and it is not able to download image using that url so image does not render. I added on error resource id in setNavHeader function and made PR. Please Review.
Then it is not the issue with the app, rather with the sample
@iamareebjamal I think even if this is issue of sample, It is good to set placeholder image rather than showing blank instead(There may happen any kind of error during downloading image from url).
Agreed
Actual Behaviour
ic_launcher icon does not render in navigation header in apk generated by apk generator.
Expected Behaviour
ic_launcher icon should render in navigation header.
Steps to reproduce it
Screenshots of the issue
Would you like to work on the issue?
yes