2017-01-18 1 views
-3

私はソフトキーボードアプリケーションを開発しました。うまく動作します。インストール後にユーザーが選択するキーコードのリストを開くとサービス名は英語(米国)#BenificaMojiのように表示されますが、サービス名は#BenficaMojiのように表示されます。どうすれば私のサービス名から英語(アメリカ)を削除し、次の画像リンクに示す#PepsiMojiのようなサービス名を表示することができますか? Click here for image to understand problem exactlyAndroidで私たちのサービス名からローカライゼーションの詳細を削除するには

は、ここに私のAndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools" 
package="com.crafts"> 

<uses-permission  
    android:name="android.permission.SYSTEM_ALERT_WINDOW" /> 
<uses-permission android:name="android.permission.INTERNET" /> 
<uses-permission 
    android:name="android.permission.ACCESS_NETWORK_STATE" /> 
<uses-permission 
    android:name="android.permission.READ_EXTERNAL_STORAGE" /> 
<uses-permission  
    android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 


<uses-permission android:name="android.permission.VIBRATE" /> 
<uses-permission 
    android:name="android.permission.PACKAGE_USAGE_STATS" 
    tools:ignore="ProtectedPermissions" /> 

<application 
    android:allowBackup="true" 
    android:icon="@drawable/app_icon" 
    android:label="@string/app_name" 
    android:supportsRtl="true" 
    android:theme="@style/AppTheme"> 
    <activity android:name=".SplashActivity"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category 
      android:name="android.intent.category.LAUNCHER"/> 
     </intent-filter> 
    </activity> 

    <service 
     android:name=".keybord.SoftKeyboard" 
     android:description="@string/app_name" 
     android:label="@string/app_name" 
     android:permission="android.permission.BIND_INPUT_METHOD"> 
     <intent-filter> 
      <action android:name="android.view.InputMethod" 
       android:label="@string/app_name"/> 
     </intent-filter> 

     <meta-data 
      android:name="android.view.im" 
      android:resource="@xml/method" /> 
    </service> 

    <provider 
     android:name="android.support.v4.content.FileProvider" 
     android:authorities="com.crafts.fileprovider" 
     android:exported="false" 
     android:grantUriPermissions="true"> 
     <meta-data 
      android:name="android.support.FILE_PROVIDER_PATHS" 
      android:resource="@xml/filepaths" /> 
    </provider> 

    <activity 
     android:name=".HomeActivity" 
     android:screenOrientation="portrait" 
     android:theme="@style/AppTheme" /> 
</application> 

string.xmlをがある---

<resources> 
    <string name="app_name">#BenficaMoji</string> 

    <string name="ime_name">Easy Moji Keyboard</string> 

    <!-- Symbols that are commonly considered word separators in this  
     language --> 
    <string name="word_separators">\u0020.,;:!?\n()    
        []*&amp;@{}/&lt;&gt;_+=|&quot;</string> 

    <!-- Labels on soft keys --> 
    <string name="label_go_key">Go</string> 
    <string name="label_next_key">Next</string> 
    <string name="label_send_key">Send</string> 
    <string name="label_done_key">Done</string> 
    <string name="label_enter_key">Enter</string> 
    <string name="label_search_key">Enter</string> 
    </resources> 
+0

キーボードアプリケーション用のAndroidManifest.xmlファイルと、その中で使用されているstrings.xmlの値を表示してください。 –

+0

AndroidManifest.xm – zaky

+0

hi Code-Apprentice、AndroidManifeast.xmlとstring.xmlを確認してください – zaky

答えて

1

私はこの問題を解決しています。ローカリゼーションを削除するには、method.xmlのsubtype ....>タグを削除する必要があります。ここでは、android:imeSubtypeLocale = "en_US"を指定しています。

関連する問題