- 博客(6)
- 收藏
- 关注
原创 关于PopupWindow的显示(1)—— showAsDropDown方法
在开发PopupWindow相关功能时,我们主要处理PopupWindow两方面的工作:1.PopupWindow的UI展示;2.PopupWindow的显示方式,弹出位置。这篇blog主要讲PopupWindow弹出位置。PopupWindow弹出方式有2种:1.showAsDropDown ; 2.showAtLocation() 两个方法的不同主要体现在,弹出时的坐标系,换句话说就是参照物不同。本文主要对showAsDropDown()展开说明。为了精确(准确无误)的表现出PopupWindo
2020-08-12 15:48:10 3976
原创 PopupWindow的setClippingEnabled(boolean)用法详述
setClippingEnable方法源码中的注释如下:Allows the popup window to extend beyond the bounds of the screen. By default the window is clipped to the screen boundaries. Setting this to false will allow windows to be accurately positioned.直接翻译:这个方法是设置是否允许popupwindow超出
2020-08-12 07:44:27 2431
原创 Widget工作原理浅述
长按Launcher,Launcher会发出Intent调起AppWidgetPickActivity.这个activity就是我们看到的
2014-06-11 17:51:31 859
原创 java.lang.SecurityException: caller uid 10039 is different than the authenticator's uid
目前在做一个项目,就是要求登录我们的应用后
2014-06-05 11:51:09 3786 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人