开发者

Android - How to set key icon from code

开发者 https://www.devze.com 2023-01-18 14:42 出处:网络
When defining keyboard in xml , we use android:keyIcon attribute to set the key icon. But when setting the Drawable property - Key.icon, the icon is not getting displayed on the key. Instead, th开发者

When defining keyboard in xml , we use android:keyIcon attribute to set the key icon. But when setting the Drawable property - Key.icon, the icon is not getting displayed on the key. Instead, th开发者_开发百科e image is getting displayed in the popup that appears when tapping the key.Is there any other way to set key icon from code?

0

精彩评论

暂无评论...
验证码 换一张
取 消