scrollview嵌套listview运行后最先显示出来的位置不在顶部而是中间问题

来源:互联网 发布:淘宝直播自我介绍文字 编辑:程序博客网 时间:2024/05/18 00:25
重写ScrollView的方法  @Override    protected int computeScrollDeltaToGetChildRectOnScreen(Rect rect) {        return 0;    }或者@Override    protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) {        return true;    }
0 0