Custom STT dialog
This commit is contained in:
28
app/src/main/res/layout/dialog_stt.xml
Normal file
28
app/src/main/res/layout/dialog_stt.xml
Normal file
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".SttDialog">
|
||||
|
||||
<!-- TODO: Update blank fragment layout -->
|
||||
<LinearLayout
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<ImageView
|
||||
app:srcCompat="@drawable/ic_stt"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" android:id="@+id/imageView" android:layout_margin="8dp"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/STT_hint" android:id="@+id/sttHintTextView" android:layout_margin="8dp"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Medium" android:gravity="center"/>
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" android:id="@+id/partialResultTextView"
|
||||
android:layout_margin="8dp" android:gravity="center"/>
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".SttFragment">
|
||||
|
||||
<!-- TODO: Update blank fragment layout -->
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="@string/hello_blank_fragment"/>
|
||||
|
||||
</FrameLayout>
|
@ -32,7 +32,7 @@
|
||||
<string name="share_subject">Match Ping Points : %s contre %s</string>
|
||||
<string name="share_message">"%s contre %s:\n%s a gagné par %d à %d\nPing Points est disponible sur Google Play\n "</string>
|
||||
<string name="match_point">Balle de match</string>
|
||||
<string name="STT_hint">Dîtes : \"Point pour %s\" ou \"Point pour %s\"</string>
|
||||
<string name="STT_hint">Dîtes : \"Point pour %s\"\nou \"Point pour %s\"</string>
|
||||
<string name="pattern">(?i:Point pour %s)</string>
|
||||
<string name="not_understood">Pouvez-vous répéter ?</string>
|
||||
<string name="STT_disabled">Reconnaissance vocale désactivée.</string>
|
||||
|
@ -37,7 +37,7 @@
|
||||
<string name="share_subject">Ping Points Match: %s vs. %s</string>
|
||||
<string name="share_message">%s vs. %s:\n%s won by %d to %d\nGet Ping Points on Google Play</string>
|
||||
<string name="match_point">Match point</string>
|
||||
<string name="STT_hint">Say: \"Point for %s\" or \"Point for %s\"</string>
|
||||
<string name="STT_hint">Say: \"Point for %s\"\nor \"Point for %s\"</string>
|
||||
<string name="pattern">(?i:Point for %s)</string>
|
||||
<string name="not_understood">Can you repeat, please?</string>
|
||||
<string name="score" translatable="false">%d - %d</string>
|
||||
|
Reference in New Issue
Block a user