How to add user input method preference to Android Settings app?

I recently started developing Android Soft Keyboard and got some configuration issues.

How to add Android app settings? I searched almost the entire source code of AnySoftKeyboard, but did not find anything to add them to the settings application.

I am posting a link to show what I meant: http://code.google.com/p/softkeyboard/wiki/Settings

(first image from the beginning)

thank

PS Sorry for my bad english ..

+3
source share
2 answers

I found this myself:

XML- android: settingsActivity PreferenceActivity:

+8

: set android: settingsActivity XML- .

<?xml version="1.0" encoding="utf-8"?>
<input-method
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:settingsActivity="com.justes.yogabook.holo_keyboard.wrapper.SettingsActivity">
    <subtype
        android:label="@string/yogabook_holo_keyboard_subtype_label"
        android:imeSubtypeLocale="en_US"
        android:imeSubtypeMode="keyboard" />
</input-method>
0

Source: https://habr.com/ru/post/1760595/


All Articles