maihannijat / androidkeyboard Goto Github PK
View Code? Open in Web Editor NEWAndroid Custom Keyboard with subtypes, themes and emoticons.
Home Page: http://www.sunzala.com
License: GNU General Public License v3.0
Android Custom Keyboard with subtypes, themes and emoticons.
Home Page: http://www.sunzala.com
License: GNU General Public License v3.0
I appreciate your work so much.
In this application it's working perfectly fine but when i integrated it in my app in setting my app is showing in virtual keyboards but when i'm trying to click on it, it's doing nothing.Just remains as it is.
Please help me if you get any idea.
Here is my code which is same as your code and my MainActivity.kt is blank:
ImePreferences.kt
package com.app.hebrewkeyboard.android
import android.content.Intent
import android.os.Bundle
import android.preference.PreferenceActivity
import android.support.v7.widget.Toolbar
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.LinearLayout
import com.app.hebrewkeyboard.R
import com.app.hebrewkeyboard.inputMethod.InputMethodSettingsFragment
class ImePreferences : PreferenceActivity() {
override fun getIntent(): Intent {
println("TAG -- keyboard --> getIntent()")
val modIntent = Intent(super.getIntent())
modIntent.putExtra(PreferenceActivity.EXTRA_SHOW_FRAGMENT, Settings::class.java.name)
modIntent.putExtra(PreferenceActivity.EXTRA_NO_HEADERS, true)
return modIntent
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// TODO : We overwrite the title of the activity, as the default one is "Voice Search".
setTitle(R.string.hebrew_keyboard_setting)
}
override fun isValidFragment(fragmentName: String): Boolean {
return Settings::class.java.name == fragmentName
}
class Settings : InputMethodSettingsFragment() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setInputMethodSettingsCategoryTitle(R.string.language_selection_title)
setSubtypeEnablerTitle(R.string.select_language)
// TODO : Load the preferences from an XML resource
addPreferencesFromResource(R.xml.ime_preferences_layout)
}
}
/**
* Add custom toolbar to Settings (Action Bar)
*
* @param savedInstanceState
*/
override fun onPostCreate(savedInstanceState: Bundle?) {
super.onPostCreate(savedInstanceState)
val root = findViewById<ViewGroup>(android.R.id.list).parent.parent.parent as LinearLayout
val bar = LayoutInflater.from(this).inflate(R.layout.toolbar, root, false) as Toolbar
root.addView(bar, 0) // insert at top
bar.setNavigationOnClickListener { v -> finish() }
}
}
AndroidManifest.xml
<application
android:allowBackup="true"
android:fullBackupContent="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".android.ImePreferences"
android:label="@string/hebrew_keyboard_setting">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<service
android:name=".inputMethodService.SoftKeyboard"
android:permission="android.permission.BIND_INPUT_METHOD">
<intent-filter>
<action android:name="android.view.InputMethod" />
</intent-filter>
<meta-data
android:name="android.view.im"
android:resource="@xml/method" />
</service>
</application>
Hello there, I'd like to contribute to your awesome project by writing a Frequent Asked Questions for users self-service. Would love to hear from you, thanks.
For now language changes but it does not show the dialog box so that user can select directly instead of keep pressing language change button multiple time. Can you suggest some code how to add this functionality
how to change font style in keys and inputtext
like :
1.ƘҽҽԹ ϲɑӀʍ
2. мayвe
3. ҒRΩM ШHΔT
4. ℓσνє∂ σиє
Issue with Cursor position after typing in-between existing text and pressing Space Key
I want to know why only in whatsapp prediction view is not fit, i mean in whats app prediction view goes under whats app default text field.
I have creating emoji keyboard and i have using your keyboard but some key not work on long press (a,c,n,. etc) application unfortunately stopped.
06-08 12:41:45.046 28225-28225/com.example.napturalistamoji E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.napturalistamoji, PID: 28225 android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class com.sunzala.afghankeyboard.android.LatinKeyboardView Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class com.sunzala.afghankeyboard.android.LatinKeyboardView Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sunzala.afghankeyboard.android.LatinKeyboardView" on path: DexPathList[[zip file "/data/app/com.example.napturalistamoji-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example.napturalistamoji-2/lib/arm, /system/lib, /vendor/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:380) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at android.view.LayoutInflater.createView(LayoutInflater.java:616) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:794) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734) at android.view.LayoutInflater.rInflate(LayoutInflater.java:865) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828) at android.view.LayoutInflater.inflate(LayoutInflater.java:525) at android.view.LayoutInflater.inflate(LayoutInflater.java:427) at android.view.LayoutInflater.inflate(LayoutInflater.java:378) at android.inputmethodservice.KeyboardView.onLongPress(KeyboardView.java:1106) at com.example.napturalistamoji.android.LatinKeyboardView.onLongPress(LatinKeyboardView.java:222) at android.inputmethodservice.KeyboardView.openPopupIfRequired(KeyboardView.java:1083) at android.inputmethodservice.KeyboardView.-wrap0(KeyboardView.java) at android.inputmethodservice.KeyboardView$1.handleMessage(KeyboardView.java:386) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6776) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1518) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)
please give me some solution.
I have creating custom keyboard and i have using your keyboard but not find keyboard view and get the error in application unfortunately stopped. error inflating class
If I increase number of keys in pashto_latin.xml keyboard as well as in pashto_latin_shift.xml then number of keys visible in pashto_latin_shift keyboard is only 10 and other keys gets hide.because width of the keys gets increase in pashto_latin_shift.
I detected one thing that if number of keys increase in pashto_latin_shift then width of the keys increases automatically.But not getting from where this width gets increase.
please help
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.