Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
2735:970cbcdb68f9 | 2736:09775418c776 |
---|---|
902 } | 902 } |
903 | 903 |
904 val DWImageExts = arrayOf("", ".png", ".webp", ".jpg", ".jpeg", ".gif") | 904 val DWImageExts = arrayOf("", ".png", ".webp", ".jpg", ".jpeg", ".gif") |
905 | 905 |
906 class DWTabViewPagerAdapter : RecyclerView.Adapter<DWTabViewPagerAdapter.DWEventViewHolder>() { | 906 class DWTabViewPagerAdapter : RecyclerView.Adapter<DWTabViewPagerAdapter.DWEventViewHolder>() { |
907 val viewList = mutableListOf<LinearLayout>() | 907 val viewList = mutableListOf<View>() |
908 val pageList = mutableListOf<Long>() | 908 val pageList = mutableListOf<Long>() |
909 val titleList = mutableListOf<String?>() | 909 val titleList = mutableListOf<String?>() |
910 var currentPageID = 0L | 910 var currentPageID = 0L |
911 var recyclerView: RecyclerView? = null | 911 var recyclerView: RecyclerView? = null |
912 | 912 |
3444 notebookCapsOff(tabs) | 3444 notebookCapsOff(tabs) |
3445 } | 3445 } |
3446 } | 3446 } |
3447 } | 3447 } |
3448 | 3448 |
3449 fun notebookPagePack(notebook: RelativeLayout, pageID: Long, box: LinearLayout) | 3449 fun notebookPagePack(notebook: RelativeLayout, pageID: Long, box: View) |
3450 { | 3450 { |
3451 waitOnUiThread { | 3451 waitOnUiThread { |
3452 var pager: ViewPager2? = null | 3452 var pager: ViewPager2? = null |
3453 var tabs: TabLayout? = null | 3453 var tabs: TabLayout? = null |
3454 | 3454 |