输入法 总结-1

<application

android:allowBackup="true"

android:icon="@drawable/ic_launcher"

android:label="@string/app_name"

android:name=".application.InputApplication"

android:theme="@style/AppTheme">

<!--标识输入法程序-->

<service

android:label="@string/ime_name"

android:name="com.example.input.activity.InputActivity"

android:permission="android.permission.BIND_INPUT_METHOD">

<intent-filter>

<actionandroid:name="android.view.InputMethod"/>

</intent-filter>

<meta-data

android:name="android.view.im"

android:resource="@xml/method"/>

</service>

<serviceandroid:name=".service.InputService">

</service>

<activity

android:label="@string/app_name"

android:name="com.example.input.activity.MainActivity">

<intent-filter>

<actionandroid:name="android.intent.action.MAIN"/>

<categoryandroid:name="android.intent.category.LAUNCHER"/>

</intent-filter>

</activity>

</application>

method.xml

<input-methodxmlns:android="http://schemas.android.com/apk/res/android"

android:settingsActivity="com.example.input.activity.SettingActivity"/>

相关推荐