From a35b286ce040919a71d27e5bf696886237c6c470 Mon Sep 17 00:00:00 2001 From: bringert Date: Fri, 4 Oct 2013 16:26:46 +0000 Subject: Add new Android voice translator sample app This adds a simple voice translator Android app that uses the JNI bindings to the PGF C runtime. Caveats: - Since the C runtime doesn't compile for Android right now, I've bundled an old copy, along with its Java bindings. That should be removed once the C runtime compiels for Android again. - Adding an automated build would be nice. - Replacing the grammar requires editing a Java file, that should really be more dynamic. --- src/ui/android/res/values/dimens.xml | 7 +++++++ src/ui/android/res/values/strings.xml | 7 ++++--- src/ui/android/res/values/styles.xml | 20 ++++++++++++++++++++ 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 src/ui/android/res/values/dimens.xml create mode 100644 src/ui/android/res/values/styles.xml (limited to 'src/ui/android/res/values') diff --git a/src/ui/android/res/values/dimens.xml b/src/ui/android/res/values/dimens.xml new file mode 100644 index 000000000..55c1e5908 --- /dev/null +++ b/src/ui/android/res/values/dimens.xml @@ -0,0 +1,7 @@ + + + + 16dp + 16dp + + diff --git a/src/ui/android/res/values/strings.xml b/src/ui/android/res/values/strings.xml index 0d7b9a606..26601be1b 100644 --- a/src/ui/android/res/values/strings.xml +++ b/src/ui/android/res/values/strings.xml @@ -1,8 +1,9 @@ - GFTranslator - Settings - Hello world! + GF Translator + + Microphone + Switch languages diff --git a/src/ui/android/res/values/styles.xml b/src/ui/android/res/values/styles.xml new file mode 100644 index 000000000..6ce89c7ba --- /dev/null +++ b/src/ui/android/res/values/styles.xml @@ -0,0 +1,20 @@ + + + + + + + + + -- cgit v1.2.3