首页 > 其他 > 详细

005.使用百度SDK写hello baidumap时,在布局xml文件中添加地图控件时;提示'clickable' attribute found, please also add 'focusable' 错误

时间:2017-11-06 21:48:07      阅读:1626      评论:0      收藏:0      [点我收藏+]

0.报错&提示信息:

‘clickable‘ attribute found, please also add ‘focusable‘  A widget that is declared to be clickable but not declared to be focusable is not accessible via the keyboard. Please add the focusable attribute as well.

1.原因:

一个控件,如果没有定义focusable(可聚焦的),却定义了是clickable(可点击的),那么是不能通过键盘访问的。所以,需要添加一个focusable="true"。

2.解决方法:

切换到design试图,点击红框中的修复。如图:

技术分享

 

005.使用百度SDK写hello baidumap时,在布局xml文件中添加地图控件时;提示'clickable' attribute found, please also add 'focusable' 错误

原文:http://www.cnblogs.com/nextfailure/p/7795354.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!