mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-07 18:22:50 -06:00
add keyboard input in the android app
This commit is contained in:
BIN
src/ui/android/res/drawable-hdpi/ic_keyboard.png
Normal file
BIN
src/ui/android/res/drawable-hdpi/ic_keyboard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 695 B |
19
src/ui/android/res/layout/input_box.xml
Normal file
19
src/ui/android/res/layout/input_box.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@drawable/first_person_utterance_bg" >
|
||||
|
||||
<EditText
|
||||
android:id="@+id/input_text"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_marginBottom="16dp"
|
||||
android:layout_gravity="left"
|
||||
android:padding="8dp"
|
||||
android:textSize="20sp"
|
||||
android:inputType="text"
|
||||
android:background="@drawable/first_person_utterance_bg"
|
||||
/>
|
||||
|
||||
</RelativeLayout>
|
||||
4
src/ui/android/res/menu/main.xml
Normal file
4
src/ui/android/res/menu/main.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:id="@+id/input_mode"
|
||||
android:title="@string/keyboard_input"/>
|
||||
</menu>
|
||||
@@ -6,4 +6,6 @@
|
||||
<string name="microphone">Microphone</string>
|
||||
<string name="switch_languages">Switch languages</string>
|
||||
<string name="open_image">Opening</string>
|
||||
<string name="mic_input">Speech Input</string>
|
||||
<string name="keyboard_input">Keyboard Input</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user