Skip to content
Advertisement

Using Viewpager to display images from web but it is not showing me, Someone help me to solve this issue

I don’t have any errors but still my data is not showing in android emulator, I passed it in mainactivity but still it displays blank screen,Someone help me to solve this issue. I gave internet permission to display images. Is this androidx jetpack problem because it is happening for me many times while getting information from web .Check out the code below

MainActivity

JavaScript

ViewAdapter

JavaScript

Thank you!!

Advertisement

Answer

Root cause: You forgot to add the imageView into the containing View in which the imageView will be shown.

Solution: Change your code to

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement