diff android/DWindows.kt @ 2736:09775418c776

Android: Use "View" as the type for the viewList instead of LinearLayout. LinearLayout prevented the ability to pack a scrollbox.... since the type for scrollbox is ScrollView instead of LinearLayout. This change would also likely be necessary when we get a separate GroupBox class.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 16 Dec 2021 14:48:52 +0000
parents 970cbcdb68f9
children ee1cfa7d645e
line wrap: on
line diff
--- a/android/DWindows.kt	Thu Dec 16 01:12:04 2021 +0000
+++ b/android/DWindows.kt	Thu Dec 16 14:48:52 2021 +0000
@@ -904,7 +904,7 @@
 val DWImageExts = arrayOf("", ".png", ".webp", ".jpg", ".jpeg", ".gif")
 
 class DWTabViewPagerAdapter : RecyclerView.Adapter<DWTabViewPagerAdapter.DWEventViewHolder>() {
-    val viewList = mutableListOf<LinearLayout>()
+    val viewList = mutableListOf<View>()
     val pageList = mutableListOf<Long>()
     val titleList = mutableListOf<String?>()
     var currentPageID = 0L
@@ -3446,7 +3446,7 @@
         }
     }
 
-    fun notebookPagePack(notebook: RelativeLayout, pageID: Long, box: LinearLayout)
+    fun notebookPagePack(notebook: RelativeLayout, pageID: Long, box: View)
     {
         waitOnUiThread {
             var pager: ViewPager2? = null