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
Following is the code snippet which I used in my simplest solution.
android:layout_marginRight="16dp" android:layout_centerVertical="true">
If you want further explanation please look at the following link where I'd explained it well enough.
Hope this may be helpful to you anyone out there!
Cheers!