android: capture current keyboard height

expose a new virtual_keyboard_height function under notedeck::platform::android

which gets the current height of the virtual keyboard. We can use this
to tranlate the view out of the way

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-03-11 10:09:39 -07:00
parent 09ad354d24
commit bd85233120
10 changed files with 348 additions and 20 deletions

View File

@@ -6,6 +6,7 @@ description = "The APIs and data structures used by notedeck apps"
[dependencies]
nostrdb = { workspace = true }
jni = { workspace = true }
url = { workspace = true }
strum = { workspace = true }
strum_macros = { workspace = true }
@@ -35,5 +36,8 @@ tempfile = { workspace = true }
[target.'cfg(target_os = "macos")'.dependencies]
security-framework = { workspace = true }
[target.'cfg(target_os = "android")'.dependencies]
jni = { workspace = true }
[features]
profiling = ["puffin", "puffin_egui"]