diff --git a/CHANGES.txt b/CHANGES.txt
index 2cd02b9..0a22ee6 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,7 @@
Change log for AWARE
+4.7.4.beta
+- Fix note taking button display UI
+
4.7.3.beta
- add column for record bluetooth connection status
diff --git a/aware-core/aware.gradle b/aware-core/aware.gradle
index 5be8ec7..6dc6e49 100644
--- a/aware-core/aware.gradle
+++ b/aware-core/aware.gradle
@@ -4,7 +4,7 @@ buildscript {
mqtt_libs = '1.2.1'
ion_libs = "2.+"
google_libs = "17.0.0"
- version_code = 3
+ version_code = 4
version_readable = "4.7." + version_code + "." + "beta"
compile_sdk = 28
target_sdk = 28
diff --git a/aware-core/build.gradle b/aware-core/build.gradle
index f8e45b6..4e70271 100644
--- a/aware-core/build.gradle
+++ b/aware-core/build.gradle
@@ -72,7 +72,7 @@ dependencies {
implementation "org.eclipse.paho:org.eclipse.paho.client.mqttv3:$mqtt_libs"
implementation 'com.koushikdutta.ion:ion:2.2.1'
implementation 'com.google.android.material:material:1.1.0-alpha09'
- implementation "org.jetbrains.anko:anko:$anko_version"
+// implementation "org.jetbrains.anko:anko:$anko_version"
implementation 'androidx.gridlayout:gridlayout:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.annotation:annotation:1.1.0'
diff --git a/aware-phone/build.gradle b/aware-phone/build.gradle
index 16677f8..2478dc7 100755
--- a/aware-phone/build.gradle
+++ b/aware-phone/build.gradle
@@ -115,7 +115,7 @@ if (System.getenv("storeFile") != null && System.getenv("storePassword") != null
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
- implementation "org.jetbrains.anko:anko:$anko_version"
+// implementation "org.jetbrains.anko:anko:$anko_version"
implementation "me.dm7.barcodescanner:zbar:1.9.8"
diff --git a/aware-phone/src/main/AndroidManifest.xml b/aware-phone/src/main/AndroidManifest.xml
index 2bf7f46..77c39e0 100755
--- a/aware-phone/src/main/AndroidManifest.xml
+++ b/aware-phone/src/main/AndroidManifest.xml
@@ -107,7 +107,8 @@
+ android:exported="false"
+ android:windowSoftInputMode="adjustResize">
= textLength) {
+ scrollToBottom();
+ }
}
@Override
public void afterTextChanged(Editable editable) {}
- });
-
+ });
+ // Auto-scroll to bottom when EditText gains focus (keyboard appears)
+ noteEditText.setOnFocusChangeListener(new View.OnFocusChangeListener() {
+ @Override
+ public void onFocusChange(View v, boolean hasFocus) {
+ if (hasFocus) {
+ // Post the scroll action to ensure layout is complete
+ scrollView.post(new Runnable() {
+ @Override
+ public void run() {
+ scrollToBottom();
+ }
+ });
+ }
+ }
+ });
+ }
+ private void scrollToBottom() {
+ scrollView.post(new Runnable() {
+ @Override
+ public void run() {
+ // Scroll to the absolute bottom to ensure buttons are visible
+ View lastChild = scrollView.getChildAt(scrollView.getChildCount() - 1);
+ int bottom = lastChild.getBottom() + scrollView.getPaddingBottom();
+ int delta = bottom - (scrollView.getScrollY() + scrollView.getHeight());
+ scrollView.smoothScrollBy(0, delta);
+ }
+ });
}
private void saveNote() {
diff --git a/aware-phone/src/main/res/layout/activity_take_note.xml b/aware-phone/src/main/res/layout/activity_take_note.xml
index 9f94bb9..54a5e4b 100644
--- a/aware-phone/src/main/res/layout/activity_take_note.xml
+++ b/aware-phone/src/main/res/layout/activity_take_note.xml
@@ -1,69 +1,72 @@
-
-
-
+ android:fillViewport="true">
+ android:orientation="vertical"
+ android:padding="16dp">
-
+ android:minHeight="200dp"
+ android:gravity="top"
+ android:hint="Enter your note here..."
+ android:inputType="textMultiLine"
+ android:maxLength="10000"/>
-
-
+ android:orientation="horizontal"
+ android:layout_marginTop="8dp">
-
+
-
+
+
-
+
-
+
-
+
+
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
index 079127f..ce9df21 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,7 +4,7 @@ buildscript {
mqtt_libs = '1.2.1'
ion_libs = "2.+"
google_libs = "17.0.0"
- version_code = 3
+ version_code = 4
version_readable = "4.7." + version_code + ".beta"
compile_sdk = 28
diff --git a/resources/aware-phone-arm64-v8a-release.apk b/resources/aware-phone-arm64-v8a-release.apk
index b5b7f29..eec45df 100644
--- a/resources/aware-phone-arm64-v8a-release.apk
+++ b/resources/aware-phone-arm64-v8a-release.apk
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:e3d2ca0262234ffaebbe3f25621563e0d9db09f2e340f8d3a71b5cc640ba0e5a
-size 6395328
+oid sha256:e868f8da3c7051f398cbc6c70fd117b1911829e73b0f024a4518ba8ad4bc01b1
+size 6395372
diff --git a/resources/aware-phone-armeabi-release.apk b/resources/aware-phone-armeabi-release.apk
index a5ce563..e889b4b 100644
--- a/resources/aware-phone-armeabi-release.apk
+++ b/resources/aware-phone-armeabi-release.apk
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:1b037e1bef1a0e290334d628d9e0e47bd50035cc6bd9d35dbb0b4ff92d2dc029
-size 6263984
+oid sha256:c5dd0bf94d5648dd90d3d7dd8e072b6e249e2b512da8b3f8ec3bce0f4bf842e0
+size 6264028
diff --git a/resources/aware-phone-armeabi-v7a-release.apk b/resources/aware-phone-armeabi-v7a-release.apk
index c62415d..5c7de2f 100644
--- a/resources/aware-phone-armeabi-v7a-release.apk
+++ b/resources/aware-phone-armeabi-v7a-release.apk
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:0406771f1897433bc68178040b042f1e9a551b15901f4bcfb1d1c9f5d7fc458b
-size 6255808
+oid sha256:39d0bfd227fd6e3293544a606934166de9daa0807625f2e8dc66270c5b0d9965
+size 6255852
diff --git a/resources/aware-phone-x86-release.apk b/resources/aware-phone-x86-release.apk
index e3734cb..048824e 100644
--- a/resources/aware-phone-x86-release.apk
+++ b/resources/aware-phone-x86-release.apk
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:b659f89fbe204220856a709b66e7ff5eda31534cf205a594729114e628685a61
-size 6370404
+oid sha256:5d509bff27a6f8145b84610c597642899be3560161ca8ac4e7938c52f29f9af1
+size 6370448
diff --git a/resources/aware-phone-x86_64-release.apk b/resources/aware-phone-x86_64-release.apk
index 96ae301..6dbd34e 100644
--- a/resources/aware-phone-x86_64-release.apk
+++ b/resources/aware-phone-x86_64-release.apk
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
-oid sha256:edd14e8acc2bde987d3d9237f5a37b47c6765e14318b32f7cf9738a9d1e02f18
-size 6395570
+oid sha256:178bd5aab2307584314ab8f2e79bdf3e3030eef9343e8a782a3cf7154392c388
+size 6395614
diff --git a/resources/output-metadata.json b/resources/output-metadata.json
index 868b0fb..70edb74 100644
--- a/resources/output-metadata.json
+++ b/resources/output-metadata.json
@@ -15,8 +15,8 @@
"value": "x86_64"
}
],
- "versionCode": 3,
- "versionName": "4.7.3.beta",
+ "versionCode": 4,
+ "versionName": "4.7.4.beta",
"outputFile": "aware-phone-x86_64-release.apk"
},
{
@@ -24,48 +24,48 @@
"filters": [
{
"filterType": "ABI",
- "value": "x86"
+ "value": "arm64-v8a"
}
],
- "versionCode": 3,
- "versionName": "4.7.3.beta",
- "outputFile": "aware-phone-x86-release.apk"
+ "versionCode": 4,
+ "versionName": "4.7.4.beta",
+ "outputFile": "aware-phone-arm64-v8a-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
- "value": "armeabi"
+ "value": "x86"
}
],
- "versionCode": 3,
- "versionName": "4.7.3.beta",
- "outputFile": "aware-phone-armeabi-release.apk"
+ "versionCode": 4,
+ "versionName": "4.7.4.beta",
+ "outputFile": "aware-phone-x86-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
- "value": "armeabi-v7a"
+ "value": "armeabi"
}
],
- "versionCode": 3,
- "versionName": "4.7.3.beta",
- "outputFile": "aware-phone-armeabi-v7a-release.apk"
+ "versionCode": 4,
+ "versionName": "4.7.4.beta",
+ "outputFile": "aware-phone-armeabi-release.apk"
},
{
"type": "ONE_OF_MANY",
"filters": [
{
"filterType": "ABI",
- "value": "arm64-v8a"
+ "value": "armeabi-v7a"
}
],
- "versionCode": 3,
- "versionName": "4.7.3.beta",
- "outputFile": "aware-phone-arm64-v8a-release.apk"
+ "versionCode": 4,
+ "versionName": "4.7.4.beta",
+ "outputFile": "aware-phone-armeabi-v7a-release.apk"
}
]
}
\ No newline at end of file