有时页面添加了第三方下拉刷新库 然后页面也有断网提示 文字点击重新加载 textview可能会被 刷新库覆盖 这时可以将布局改为帧布局 这样断网提示 文字textview就能响应点击事件了
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:descendantFocusability="blocksDescendants" android:layout_height="match_parent">