@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);
}
});
}
测试
猜你喜欢
转载自blog.51cto.com/13700086/2097421
今日推荐
周排行