comparison android/DWindows.kt @ 2479:54b0008a0569

Android: Set the window text on the activity in dw_window_new(). Also remove the now unnecessary dwindows_main.xml since we generate our layout ourselves.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 24 Apr 2021 21:28:57 +0000
parents b0230e378667
children 878d36588aaa
comparison
equal deleted inserted replaced
2478:b0230e378667 2479:54b0008a0569
30 */ 30 */
31 fun windowNew(title: String, style: Int): LinearLayout 31 fun windowNew(title: String, style: Int): LinearLayout
32 { 32 {
33 var windowLayout: LinearLayout = LinearLayout(this) 33 var windowLayout: LinearLayout = LinearLayout(this)
34 setContentView(windowLayout) 34 setContentView(windowLayout)
35 this.title = title
35 // For now we just return our DWindows' main activity layout... 36 // For now we just return our DWindows' main activity layout...
36 // in the future, later calls should create new activities 37 // in the future, later calls should create new activities
37 return windowLayout 38 return windowLayout
38 } 39 }
39 40