Support "nm" (no mic) privateImeOptions
Bug: 3331635 Change-Id: Ide160b9317c8f7d966f879dd460640fc4f894e9bmain
parent
a5627e4e1f
commit
0f901aab36
|
@ -132,9 +132,15 @@
|
||||||
latin:keyLabel="0" />
|
latin:keyLabel="0" />
|
||||||
<Key
|
<Key
|
||||||
latin:keyLabel="#" />
|
latin:keyLabel="#" />
|
||||||
|
<switch>
|
||||||
|
<case
|
||||||
|
latin:voiceKeyEnabled="true"
|
||||||
|
>
|
||||||
<Key
|
<Key
|
||||||
latin:keyStyle="micKeyStyle"
|
latin:keyStyle="micKeyStyle"
|
||||||
latin:keyWidth="8.042%p" />
|
latin:keyWidth="8.042%p" />
|
||||||
|
</case>
|
||||||
|
</switch>
|
||||||
<!-- There is an empty area bellow the "Enter" key and right of the "#" key. To ignore
|
<!-- There is an empty area bellow the "Enter" key and right of the "#" key. To ignore
|
||||||
the touch event on the area, "#" is intentionally not marked as a right edge key. -->
|
the touch event on the area, "#" is intentionally not marked as a right edge key. -->
|
||||||
</Row>
|
</Row>
|
||||||
|
|
|
@ -140,9 +140,15 @@
|
||||||
latin:keyStyle="num0KeyStyle" />
|
latin:keyStyle="num0KeyStyle" />
|
||||||
<Key
|
<Key
|
||||||
latin:keyStyle="numPoundKeyStyle" />
|
latin:keyStyle="numPoundKeyStyle" />
|
||||||
|
<switch>
|
||||||
|
<case
|
||||||
|
latin:voiceKeyEnabled="true"
|
||||||
|
>
|
||||||
<Key
|
<Key
|
||||||
latin:keyStyle="micKeyStyle"
|
latin:keyStyle="micKeyStyle"
|
||||||
latin:keyWidth="8.042%p" />
|
latin:keyWidth="8.042%p" />
|
||||||
|
</case>
|
||||||
|
</switch>
|
||||||
<!-- There is an empty area bellow the "Enter" key and right of the "#" key. To ignore
|
<!-- There is an empty area bellow the "Enter" key and right of the "#" key. To ignore
|
||||||
the touch event on the area, "#" is intentionally not marked as a right edge key. -->
|
the touch event on the area, "#" is intentionally not marked as a right edge key. -->
|
||||||
</Row>
|
</Row>
|
||||||
|
|
|
@ -152,9 +152,15 @@
|
||||||
latin:keyStyle="num0KeyStyle" />
|
latin:keyStyle="num0KeyStyle" />
|
||||||
<Key
|
<Key
|
||||||
latin:keyStyle="numPoundKeyStyle" />
|
latin:keyStyle="numPoundKeyStyle" />
|
||||||
|
<switch>
|
||||||
|
<case
|
||||||
|
latin:voiceKeyEnabled="true"
|
||||||
|
>
|
||||||
<Key
|
<Key
|
||||||
latin:keyStyle="micKeyStyle"
|
latin:keyStyle="micKeyStyle"
|
||||||
latin:keyWidth="8.042%p" />
|
latin:keyWidth="8.042%p" />
|
||||||
|
</case>
|
||||||
|
</switch>
|
||||||
<!-- There is an empty area bellow the "Enter" key and right of the "#" key. To ignore
|
<!-- There is an empty area bellow the "Enter" key and right of the "#" key. To ignore
|
||||||
the touch event on the area, "#" is intentionally not marked as a right edge key. -->
|
the touch event on the area, "#" is intentionally not marked as a right edge key. -->
|
||||||
</Row>
|
</Row>
|
||||||
|
|
|
@ -114,7 +114,13 @@
|
||||||
latin:popupCharacters="_" />
|
latin:popupCharacters="_" />
|
||||||
</default>
|
</default>
|
||||||
</switch>
|
</switch>
|
||||||
|
<switch>
|
||||||
|
<case
|
||||||
|
latin:voiceKeyEnabled="true"
|
||||||
|
>
|
||||||
<Key
|
<Key
|
||||||
latin:keyStyle="micKeyStyle" />
|
latin:keyStyle="micKeyStyle" />
|
||||||
|
</case>
|
||||||
|
</switch>
|
||||||
</Row>
|
</Row>
|
||||||
</merge>
|
</merge>
|
||||||
|
|
|
@ -162,7 +162,13 @@
|
||||||
latin:popupCharacters="“,”,«,»,˝" />
|
latin:popupCharacters="“,”,«,»,˝" />
|
||||||
<Key
|
<Key
|
||||||
latin:keyLabel="_" />
|
latin:keyLabel="_" />
|
||||||
|
<switch>
|
||||||
|
<case
|
||||||
|
latin:voiceKeyEnabled="true"
|
||||||
|
>
|
||||||
<Key
|
<Key
|
||||||
latin:keyStyle="micKeyStyle" />
|
latin:keyStyle="micKeyStyle" />
|
||||||
|
</case>
|
||||||
|
</switch>
|
||||||
</Row>
|
</Row>
|
||||||
</Keyboard>
|
</Keyboard>
|
||||||
|
|
|
@ -139,7 +139,13 @@
|
||||||
<Key
|
<Key
|
||||||
latin:keyStyle="spaceKeyStyle"
|
latin:keyStyle="spaceKeyStyle"
|
||||||
latin:keyWidth="37.454%p" />
|
latin:keyWidth="37.454%p" />
|
||||||
|
<switch>
|
||||||
|
<case
|
||||||
|
latin:voiceKeyEnabled="true"
|
||||||
|
>
|
||||||
<Key
|
<Key
|
||||||
latin:keyStyle="micKeyStyle" />
|
latin:keyStyle="micKeyStyle" />
|
||||||
|
</case>
|
||||||
|
</switch>
|
||||||
</Row>
|
</Row>
|
||||||
</Keyboard>
|
</Keyboard>
|
||||||
|
|
|
@ -25,9 +25,6 @@ import com.android.inputmethod.keyboard.LatinKeyboardView;
|
||||||
import com.android.inputmethod.latin.Utils.RingCharBuffer;
|
import com.android.inputmethod.latin.Utils.RingCharBuffer;
|
||||||
import com.android.inputmethod.voice.VoiceIMEConnector;
|
import com.android.inputmethod.voice.VoiceIMEConnector;
|
||||||
|
|
||||||
import org.xmlpull.v1.XmlPullParser;
|
|
||||||
import org.xmlpull.v1.XmlPullParserException;
|
|
||||||
|
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.content.BroadcastReceiver;
|
import android.content.BroadcastReceiver;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
@ -37,7 +34,6 @@ import android.content.IntentFilter;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.content.res.Configuration;
|
import android.content.res.Configuration;
|
||||||
import android.content.res.Resources;
|
import android.content.res.Resources;
|
||||||
import android.content.res.XmlResourceParser;
|
|
||||||
import android.inputmethodservice.InputMethodService;
|
import android.inputmethodservice.InputMethodService;
|
||||||
import android.media.AudioManager;
|
import android.media.AudioManager;
|
||||||
import android.os.Debug;
|
import android.os.Debug;
|
||||||
|
@ -74,7 +70,6 @@ import android.widget.HorizontalScrollView;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
|
|
||||||
import java.io.FileDescriptor;
|
import java.io.FileDescriptor;
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
Loading…
Reference in New Issue