Giter Club home page Giter Club logo

Comments (9)

Jacksgong avatar Jacksgong commented on June 26, 2024

通常来说不掩盖页面的做法,是使用可滚动布局,如ScrollView

pulltorefreshlistview 这个库我并没有使用过,可以给下相关库的地址,我抽空的时候给你看看,具体问题出在哪里。

from jkeyboardpanelswitch.

wudifamo avatar wudifamo commented on June 26, 2024

https://github.com/chrisbanes/Android-PullToRefresh

问题貌似是出在PulltorefreshBase类中的onSizeChanged里面,页面布局改变的时候会调用这个方法,导致listview重绘,所以会闪吧
我现在作法是在将要弹出键盘时把WCK赋值true,虽然不闪了,但是有一定概率listview会变形,而且在scrollview中弹出键盘界面会推上去一点,切到表情面板又会缩回来,只是不会闪,还是没有完美解决

@Override
    protected final void onSizeChanged(int w, int h, int oldw, int oldh) {
        if (DEBUG) {
            Log.d(LOG_TAG, String.format("onSizeChanged. W: %d, H: %d", w, h));
        }

        super.onSizeChanged(w, h, oldw, oldh);
        if (KeyboardUtil.WCK) {
            KeyboardUtil.WCK = false;
        }else{
            // We need to update the header/footer when our size changes
            refreshLoadingViewsSize();

            // Update the Refreshable View layout
            refreshRefreshableViewSize(w, h);
        }
        /**
         * As we're currently in a Layout Pass, we need to schedule another one
         * to layout any changes we've made here
         */
        post(new Runnable() {
            @Override
            public void run() {
                requestLayout();
            }
        });
    }

from jkeyboardpanelswitch.

wudifamo avatar wudifamo commented on June 26, 2024

还有一个问题,在coordinatorlayout+viewpager的fragment中 根部局 (KPSwitchRootFrameLayout/KPSwitchRootLinearLayout/KPSwitchRootRelativeLayout)
应该用在哪里?

from jkeyboardpanelswitch.

wudifamo avatar wudifamo commented on June 26, 2024

额...我照着其它的改了一个KPSwitchRootCoordinatorLayout,貌似解决了.
下拉刷新的那个可以的话还是麻烦帮忙看下

from jkeyboardpanelswitch.

Jacksgong avatar Jacksgong commented on June 26, 2024

好的。我周末的时候看看。

from jkeyboardpanelswitch.

Jacksgong avatar Jacksgong commented on June 26, 2024

不好意思周末有些忙忘了,我最晚明晚给你看看,今晚应该有点事情。

from jkeyboardpanelswitch.

wudifamo avatar wudifamo commented on June 26, 2024

;()

from jkeyboardpanelswitch.

geeksammao avatar geeksammao commented on June 26, 2024

@wudifamo 想请问下PullToRefreshListview造成界面闪的问题后来解决了吗,我们也遇到了同样的问题下,希望跟您探讨下解决方法。

from jkeyboardpanelswitch.

fenggit avatar fenggit commented on June 26, 2024

通常来说不掩盖页面的做法,是使用可滚动布局ScrollView,怎么监听键盘弹起?有这个接口吗?手动滑到底部吗?我想把整个布局顶起了

from jkeyboardpanelswitch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.