I have a cell with a fixed width and height, let it be 100x100px. Inside that cell I want to display an ImageView with a border around. My first idea was to put
ImageView
just add bellow line in your ImageView layout
if layout_width and layout_height of imageview is not match_parent than use,
android:adjustViewBounds = "true"
or
android:adjustViewBounds = "true" android:scaleType="fitXY"
android:adjustViewBounds = "true" android:scaleType="centerCrop"