# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1663317208 0 # Node ID 22dd09e901129c86cff5910874c05819d6353f43 # Parent 3e88b961f80147b1aa03d997a0836b0fd6564d75 Android: Improve appearance of the container row by adding a 4 point margin. This probably isn't probably the best fix, it will probably be weird at large image or text sizes, but it improves the content we have currently. diff -r 3e88b961f801 -r 22dd09e90112 android/DWindows.kt --- a/android/DWindows.kt Fri Sep 16 01:40:19 2022 +0000 +++ b/android/DWindows.kt Fri Sep 16 08:33:28 2022 +0000 @@ -56,6 +56,7 @@ import androidx.core.content.ContextCompat import androidx.core.content.res.ResourcesCompat import androidx.core.view.MenuCompat +import androidx.core.view.setMargins import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import androidx.viewpager2.widget.ViewPager2 @@ -2266,6 +2267,7 @@ val match = RelativeLayout.LayoutParams.MATCH_PARENT var lp = RelativeLayout.LayoutParams(wrap, wrap) imageview.id = View.generateViewId() + lp.setMargins(4) this.addView(imageview, lp) lp = RelativeLayout.LayoutParams(match, wrap) text.id = View.generateViewId()