update:直播间UI调整:
1、左上角直播间名去掉黄框并调整透明度为30% 2、更换直播间关闭icon并保持和观众icon一致 3、守护图标大小调整 4、新人特惠位置右移 5、快捷语增加间距
This commit is contained in:
@@ -37,7 +37,7 @@ public class RightGradual extends RecyclerView.ItemDecoration {
|
||||
float right=parent.getRight();
|
||||
float bottom=parent.getBottom();
|
||||
if(mLinearGradient==null){
|
||||
mLinearGradient=new LinearGradient(parent.getMeasuredWidth(), 0.0f, 0.0f, 0.0f, new int[]{0, Color.BLACK}, new float[]{0.0f,0.2f}, Shader.TileMode.CLAMP);
|
||||
mLinearGradient=new LinearGradient(parent.getMeasuredWidth(), 0.0f, 0.0f, 0.0f, new int[]{0, Color.BLACK}, new float[]{0.0f,0.4f}, Shader.TileMode.CLAMP);
|
||||
}
|
||||
mPaint.setXfermode(mXfermode);
|
||||
mPaint.setShader(mLinearGradient);
|
||||
|
||||
@@ -1108,7 +1108,6 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
String url = CommonAppConfig.HOST + path;
|
||||
url += "&uid=" + CommonAppConfig.getInstance().getUid() + "&token="
|
||||
+ CommonAppConfig.getInstance().getToken() + "&anchorUid=" + mLiveUid;
|
||||
System.out.println("url = " + url);
|
||||
bundle.putString("url", url);
|
||||
// bundle.putInt("height", DpUtil.dp2px(500));
|
||||
bundle.putInt("show_type", 0);
|
||||
@@ -1535,6 +1534,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
private void setGuardIcon(LiveUserGiftBean guard) {
|
||||
if (guard != null) {
|
||||
nowGuardUser = guard;
|
||||
ViewGroup.LayoutParams params = userGuard.getLayoutParams();
|
||||
params.height=DpUtil.dp2px(30);
|
||||
params.width=DpUtil.dp2px(30);
|
||||
userGuard.setLayoutParams(params);
|
||||
ImgLoader.displayAvatar(mContext, guard.getAvatar(), userGuard);
|
||||
gift_svga.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user