1. Are you ready for the Galaxy S20? Here is everything we know so far!

Sizing images to fit all screens

Discussion in 'Android Development' started by David Ramer, Apr 28, 2020.

  1. David Ramer

    David Ramer Lurker
    Thread Starter

    Hi,

    I've been reading and searching on how to display ImageViews that sizes the images based on the device. I have 16 cards that need to be displayed. My card size is 127X177px png files. I'm storing them in the Drawable folder. The top for cards are constraint by the top of the screen. I chain the row together, and force the left and right edge card to have a constraint to the edge. Each row has constraints on the row above. I've tried fitXY, Center, nothing seems to scale the cards, when shown they all overlap each other.

    Thank you to any one that can help.
     

    Attached Files:



Loading...

Share This Page

Loading...