android studio
yao201606
这个作者很懒,什么都没留下…
展开
-
Android Studio,Error:Configuration with name 'default' not found.
同一个project下面有多个module时,sync的时候发现总是提示:Error:Configuration with name 'default' not found.settings.gradle里面也都把几个module include进来了。include ':Acadia_3G', ':Acadia_Brightness', ':pqaa_common原创 2017-03-22 15:12:10 · 486 阅读 · 0 评论 -
Android按键长按与短按事件
在有些按键事件中,需要区分长按,与短按的差别。多久属于长按可以自定义,一般默认在1s。在这个长短按事件中,用到三个方法:onKeyDown()-----处理按下去的事件onKeyUp()-----处理按键弹起的事件onKeyLongPress()-----处理长按事件此处定义的一个全局变量 private boolean shortPress = false;原创 2017-04-11 18:18:55 · 10243 阅读 · 0 评论