Home:ALL Converter>Images in cardview not supporting multiple screen sizes in android studio chipmunks

Images in cardview not supporting multiple screen sizes in android studio chipmunks

Ask Time:2022-09-23T04:09:04         Author:Satya Sri

Json Formatter

I tried to make app supporting multiple screen size it didn't work..the size of the image looks very large in tablet.

So I have created these layouts small,large,X-Large,sw-600dp and sw-700dp..(activity-main). While testing in different mobiles top of the images are slight cut and in tablets the images are large (middle of the image can be seen).

And also I have created res/drawables(mdpi,ldpi,xhdpi,xxhdpi,xxxhdpi) android:layout_width="match_parent" android:layout_height="wrap-content"

Where am I going wrong?I attached cardview and image coding part

Author:Satya Sri,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/73820156/images-in-cardview-not-supporting-multiple-screen-sizes-in-android-studio-chipmu
yy