From 040e7d2a7a110f209add5213270f5f77d006f42b Mon Sep 17 00:00:00 2001 From: William Johnson Date: Sun, 29 Sep 2024 09:42:10 -0700 Subject: [PATCH] Work trying to improve layout on Android, and also allow app to accept other apps sending it files. Added some code that tries to detect soft-keyboard showing and changing screen size, but I seem unable to move teh whole display up, or whatever, to keep input field visible. Handling the layout with the WebView as the only part of the app seems to be causing some difficulties that are frusterating (I dont want WebView to resize, and I cant get the OS to handle things to keep input visible, like iOS does by default). Resolve issue #34 (hopefully), by changing to allow InterSpec to accept any file type from another app. Currently only handles accepting a single file. Only tested with Radiacode app and google drive. --- .../app/src/main/AndroidManifest.xml | 15 +- .../java/gov/sandia/InterSpec/InterSpec.java | 223 ++++++++++++++---- .../app/src/main/res/layout/main.xml | 27 ++- 3 files changed, 204 insertions(+), 61 deletions(-) diff --git a/target/android/InterSpec/app/src/main/AndroidManifest.xml b/target/android/InterSpec/app/src/main/AndroidManifest.xml index aabc6d61..5b8ff154 100644 --- a/target/android/InterSpec/app/src/main/AndroidManifest.xml +++ b/target/android/InterSpec/app/src/main/AndroidManifest.xml @@ -8,7 +8,7 @@ + + + + + +