luckybilly/Gloading

使用Fragment+viewpage,发现虽说看不见底部布局,但是点击事件都还在

Alexxiaopang opened this issue · 2 comments

使用Fragment+viewpage,发现虽说看不见底部布局,但是点击事件都还在
比如屏幕A点有点击事件,这时候错误view把A盖住了,但是点击A的位置,点击事件都还在

@Alexxiaopang 这是FrameLayout的点击穿透问题,可在LoadingView设置android:clickable="true" loadingView.setClickable(true)

Gloading使用FrameLayout将目标view包裹起来,并将LoadingView显示在最上层,Gloading本身并未对LoadingView进行额外的属性设置,如果不想点击穿透,请设置LoadingView的clickable为true

好的,谢谢