我的目标是在加载应用程序后立即打开键盘.使用此代码,
InputMethodManager inputMgr = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
inputMgr.toggleSoftInput(0, 0);`
Run Code Online (Sandbox Code Playgroud)
在按钮上,我可以在按下按钮时加载键盘.但是,当置于覆盖onCreate()部分时,没有任何反应.
我希望使用自定义XML进行状态栏通知.
要用作起点,有什么地方可以找到默认通知的xml代码吗?
谢谢.