public void hideEmojiLayout() {
        LayoutParams params = (LayoutParams) mContentLayout.getLayoutParams();
        params.height = 0;
        params.weight = 1;
        LayoutParams params2 = (LayoutParams) mEmojiLayout.getLayoutParams();
        params2.height = 0;
        params2.weight = 0;
        mEmojiLayout.setVisibility(GONE);
        isEmojiLayoutShow = false;
        requestLayout();
    }
public void hideEmojiLayout ( ) { LayoutParams params = ( LayoutParams ) mContentLayout . getLayoutParams ( ) ; params . height = 0 ; params . weight = 1 ; LayoutParams params2 = ( LayoutParams ) mEmojiLayout . getLayoutParams ( ) ; params2 . height = 0 ; params2 . weight = 0 ; mEmojiLayout . setVisibility ( GONE ) ; isEmojiLayoutShow = false ; requestLayout ( ) ; }
恢复成默认就行了