Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 xml 中定义键盘时,我们使用android:keyIcon属性来设置按键图标。但是在设置Drawable属性 - Key.icon时,图标不会显示在键上。相反,图像会显示在点击键时出现的弹出窗口中。还有其他方法可以从代码中设置键图标吗?