changeset 2842:22dd09e90112

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.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 16 Sep 2022 08:33:28 +0000
parents 3e88b961f801
children bacac2eb1677
files android/DWindows.kt
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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()