修改LiveHDDialogFragment Gravity 位置
This commit is contained in:
@@ -530,12 +530,6 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
new LoadDian9TuUtil().loadDian9Tu(mContext, mBg, bean.getBubble(), 1);
|
||||
}
|
||||
} else if(bean.getType() == TYPE_TO_ANCHOR_PRANK){
|
||||
/*String str1 = "<font color='#ff1a1a'>娛樂整蠱</font>";
|
||||
String str2 = "<font color='#0d0d0d'>全新升級,快去設置整蠱内容,給直播間增加更多趣味吧!</font>";
|
||||
String str3 = "<font color='#3384ff'>>>立即前往>></font>";
|
||||
mTextView.setText(Html.fromHtml(str1+str2+str3));
|
||||
new LoadDian9TuUtil().loadDian9TuAssets(mContext, mBg, 1);*/
|
||||
|
||||
LinearLayout.LayoutParams params3 = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
|
||||
params3.setMargins(0, 8, DpUtil.dp2px(80), 8);
|
||||
params3.gravity = Gravity.CENTER_VERTICAL;
|
||||
@@ -581,7 +575,6 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
&& !CommonAppConfig.getInstance().getUid().equals(bean.getAtUserID())) {
|
||||
return;
|
||||
}
|
||||
// Log.i(TAG, "insertItem: " + bean.getContent()+" size = "+(mList.size()+1));
|
||||
int size = mList.size();
|
||||
//设置最大展示99条消息
|
||||
if (size >= 100 && (isBottom || mRecyclerViewScrolledDy == 0)) {
|
||||
@@ -745,20 +738,6 @@ public class LiveChatAdapter extends RecyclerView.Adapter {
|
||||
}
|
||||
|
||||
private Spanned userNicenamehighlight(String context, String keyword, String keyword2, Drawable levelDrawable) {
|
||||
// String contextHtml = "";
|
||||
// String keywordHtml2;
|
||||
// String keywordHtml;
|
||||
// if (TextUtils.isEmpty(keyword) || TextUtils.isEmpty(keyword2)) {
|
||||
// keywordHtml2 = TextUtils.isEmpty(keyword) ? "1" : keyword;
|
||||
// keywordHtml = TextUtils.isEmpty(keyword) ? "1" : keyword;
|
||||
// } else {
|
||||
// keywordHtml2 = "</font><font color='#4BFFD4'size='42px'>" + keyword + "</font><font color='#ffffff'size='42px'>";
|
||||
// keywordHtml = "</font><font color='#4BFFD4'size='42px'>" + keyword2 + "</font><font color='#ffffff'size='42px'>";
|
||||
// }
|
||||
//
|
||||
// contextHtml = "<font color='#ffffff'size='42px'>" + context + "</font>";
|
||||
// contextHtml = contextHtml.replace(keyword, keywordHtml2).replace(keyword2, keywordHtml);
|
||||
|
||||
SpannableStringBuilder builder = new SpannableStringBuilder();
|
||||
int index = 0;
|
||||
|
||||
|
||||
@@ -129,7 +129,7 @@ public class LiveHDDialogFragment extends AbsDialogFragment {
|
||||
} else {
|
||||
params.height = WindowManager.LayoutParams.WRAP_CONTENT;
|
||||
}
|
||||
params.gravity = Gravity.CENTER_VERTICAL;
|
||||
params.gravity = Gravity.BOTTOM;
|
||||
window.setAttributes(params);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user