comparison android/DWindows.kt @ 2684:a26e5a2d94be

Android: Using Placeholder class for packing empty space caused layout issues. Switched to using a bare View class instead and things seem better.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 26 Oct 2021 05:43:02 +0000
parents e7885fd45f7b
children 17c34bdaec6c
comparison
equal deleted inserted replaced
2683:e7885fd45f7b 2684:a26e5a2d94be
1679 var box: LinearLayout? = null 1679 var box: LinearLayout? = null
1680 var item: View? = packitem 1680 var item: View? = packitem
1681 1681
1682 // We can't pack nothing, so create an empty placeholder to pack 1682 // We can't pack nothing, so create an empty placeholder to pack
1683 if(item == null) { 1683 if(item == null) {
1684 item = Placeholder(this) 1684 item = View(this)
1685 item.emptyVisibility = View.VISIBLE 1685 item.visibility = View.VISIBLE
1686 } 1686 }
1687 1687
1688 // Handle scrollboxes by pulling the LinearLayout 1688 // Handle scrollboxes by pulling the LinearLayout
1689 // out of the ScrollView to pack into 1689 // out of the ScrollView to pack into
1690 if (boxview is LinearLayout) { 1690 if (boxview is LinearLayout) {