Mercurial > dwindows
diff android/DWindows.kt @ 2503:1c2a79313b04
Android: Implment dw_window_hide/show(). Set the initial visibility to GONE.
The window won't be laid out until dw_window_show() is called on the window.
Put the dwindowsInit() hack back in... keep hoping some of these changes
will fix it, but it persists. HTML mostly works, but getting cache miss?
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 06 May 2021 10:39:55 +0000 |
parents | b6319aed3298 |
children | a149dabf6a1f |
line wrap: on
line diff
--- a/android/DWindows.kt Thu May 06 09:55:32 2021 +0000 +++ b/android/DWindows.kt Thu May 06 10:39:55 2021 +0000 @@ -123,6 +123,7 @@ var dataArrayMap = SimpleArrayMap<String, Long>() windowLayout = LinearLayout(this) + windowLayout!!.visibility = View.GONE windowLayout!!.tag = dataArrayMap setContentView(windowLayout) this.title = title @@ -201,6 +202,17 @@ return text } + fun windowHideShow(window: View, state: Int) + { + waitOnUiThread { + if(state == 0) { + window.visibility = View.GONE + } else { + window.visibility = View.VISIBLE + } + } + } + fun clipboardGetText(): String { var cm: ClipboardManager = getSystemService(CLIPBOARD_SERVICE) as ClipboardManager var clipdata = cm.primaryClip