0

我想要哪个键盘现在像英语,印地语一样处于活动状态并动态更改它..

List<InputMethodInfo> InputMethods = imeManager.getEnabledInputMethodList();

for(int i=0;i<InputMethods.size();i++)
{
    String s1=InputMethods.get(i).loadLabel(getPackageManager()).toString();
    String s2=InputMethods.get(i).getServiceName().toString();

    Toast.makeText(Display1.this, s2, Toast.LENGTH_LONG).show();
}

if (imeManager != null) 
{
    imeManager.showInputMethodPicker();
}
else 
{
    Toast.makeText(Display1.this, "Error", Toast.LENGTH_LONG).show();        
}   
4

0 回答 0