@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);
}
});
}
test
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=325673614&siteId=291194637
Recommended
Ranking