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 the property adjustViewBounds to the ImageView.
Kindly note that android:adjustViewBounds="true" works only with android:layout_width and android:layout_height set to "wrap_content".
android:adjustViewBounds="true"
android:layout_width
android:layout_height