recognize the app as a keyboard
This commit is contained in:
parent
6c97150caa
commit
c5f83cc7ea
|
@ -32,6 +32,26 @@
|
|||
android:name=".activities.SplashActivity"
|
||||
android:theme="@style/SplashTheme" />
|
||||
|
||||
<service
|
||||
android:name=".helpers.SimpleKeyboardIME"
|
||||
android:label="@string/app_name"
|
||||
android:permission="android.permission.BIND_INPUT_METHOD">
|
||||
<meta-data
|
||||
android:name="android.view.im"
|
||||
android:resource="@xml/method" />
|
||||
<intent-filter>
|
||||
<action android:name="android.view.InputMethod" />
|
||||
</intent-filter>
|
||||
</service>
|
||||
|
||||
<activity
|
||||
android:name=".activities.SettingsActivity"
|
||||
android:label="@string/app_name">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
|
||||
<activity-alias
|
||||
android:name=".activities.SplashActivity.Red"
|
||||
android:enabled="false"
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
package com.simplemobiletools.keyboard.activities
|
||||
|
||||
import android.os.Bundle
|
||||
import com.simplemobiletools.commons.extensions.appLaunched
|
||||
import com.simplemobiletools.keyboard.BuildConfig
|
||||
import com.simplemobiletools.keyboard.R
|
||||
|
||||
class SettingsActivity : SimpleActivity() {
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
setContentView(R.layout.activity_settings)
|
||||
}
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package com.simplemobiletools.keyboard.helpers
|
||||
|
||||
import android.inputmethodservice.InputMethodService
|
||||
|
||||
public class SimpleKeyboardIME : InputMethodService() {
|
||||
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<input-method xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:settingsActivity="com.simplemobiletools.keyboard.activities.SettingsActivity"
|
||||
android:supportsSwitchingToNextInputMethod="true">
|
||||
|
||||
<subtype
|
||||
android:imeSubtypeMode="Keyboard"
|
||||
android:label="english" />
|
||||
|
||||
</input-method>
|
Loading…
Reference in New Issue