test

    @Override
    public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) {
        boolean change = (oldTop != top);
        if (!change || recycleChatMsgList == null) {
            return;
        }
        RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) recycleChatMsgList.getLayoutParams();
        layoutParams.bottomMargin = inputLayout.getHeight();
        ViewUtils.runOnMain(() -> {
            if (recycleChatMsgList != null) {
                recycleChatMsgList.setLayoutParams(layoutParams);
            }
        });
    }

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325673614&siteId=291194637