From d488d4e9753d500e89afb10ffdb1d2eca3c1959c Mon Sep 17 00:00:00 2001 From: Mathieu Date: Thu, 14 Oct 2021 22:02:42 +0200 Subject: [PATCH] Improved UI (ListeningActivity) working fine "in-app" but not outside --- app/src/main/AndroidManifest.xml | 7 ++-- .../jarvis/android/ListeningActivity.java | 5 +++ .../main/res/layout/activity_listening.xml | 34 +++++++++++++++++-- app/src/main/res/values/strings.xml | 1 + app/src/main/res/values/styles.xml | 9 +++++ 5 files changed, 48 insertions(+), 8 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 692739b..1028488 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -22,11 +22,8 @@ android:enabled="true" android:exported="false"/> - + diff --git a/app/src/main/java/ch/mathieubroillet/jarvis/android/ListeningActivity.java b/app/src/main/java/ch/mathieubroillet/jarvis/android/ListeningActivity.java index 8224249..ebfe3f2 100644 --- a/app/src/main/java/ch/mathieubroillet/jarvis/android/ListeningActivity.java +++ b/app/src/main/java/ch/mathieubroillet/jarvis/android/ListeningActivity.java @@ -3,6 +3,7 @@ package ch.mathieubroillet.jarvis.android; import android.app.KeyguardManager; import android.content.Context; import android.os.Bundle; +import android.view.View; import android.view.WindowManager; import androidx.appcompat.app.AppCompatActivity; @@ -30,4 +31,8 @@ public class ListeningActivity extends AppCompatActivity { setContentView(R.layout.activity_listening); } + + public void quit(View view) { + finish(); + } } \ No newline at end of file diff --git a/app/src/main/res/layout/activity_listening.xml b/app/src/main/res/layout/activity_listening.xml index 52810c9..b5cf8fc 100644 --- a/app/src/main/res/layout/activity_listening.xml +++ b/app/src/main/res/layout/activity_listening.xml @@ -3,13 +3,29 @@ + + +