update:直播间UI调整:

1、左上角直播间名去掉黄框并调整透明度为30%
2、更换直播间关闭icon并保持和观众icon一致
3、守护图标大小调整
4、新人特惠位置右移
5、快捷语增加间距
This commit is contained in:
zlzw 2022-08-30 15:00:28 +08:00
parent 7155ed9884
commit ba4e3a5240
8 changed files with 22 additions and 27 deletions

View File

@ -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);

View File

@ -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);
}

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:radius="60dp" />
<stroke android:color="#FFBA41" android:width="1dp"/>
<solid android:color="#80000000"/>
<solid android:color="#4D000000"/>
</shape>

View File

@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/room_fast_layout"
android:layout_width="wrap_content"
android:layout_marginEnd="10dp"
android:layout_height="wrap_content"
android:background="@drawable/bg_fast_meg">

View File

@ -336,8 +336,7 @@
android:id="@+id/btn_msg"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_centerInParent="true"
android:padding="5dp"
android:src="@mipmap/messagesss" />
@ -399,10 +398,9 @@
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_centerVertical="true"
android:layout_marginEnd="16dp"
android:layout_toStartOf="@id/gift_image"
android:padding="4dp"
android:visibility="gone"
android:visibility="visible"
android:src="@mipmap/live_icon_newpeople_en" />
</RelativeLayout>

View File

@ -195,8 +195,8 @@
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/user_guard"
android:layout_width="27dp"
android:layout_height="27dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:scaleType="centerCrop"
android:src="@mipmap/img_guardian_empty"
@ -223,27 +223,22 @@
<ImageView
android:id="@+id/user_more"
android:layout_width="33dp"
android:layout_height="33dp"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginTop="4dp"
android:layout_marginRight="40dp"
android:src="@mipmap/live_users_more" />
<ImageView
android:id="@+id/btn_close"
android:layout_marginStart="6dp"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_marginTop="4dp"
android:src="@mipmap/icon_live_close_3" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>
<ImageView
android:id="@+id/btn_close"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_alignBottom="@id/lin"
android:layout_alignParentRight="true"
android:layout_marginLeft="10dp"
android:layout_marginRight="5dp"
android:layout_marginBottom="4dp"
android:padding="3dp"
android:src="@mipmap/icon_live_close_3" />
<LinearLayout
android:id="@+id/hour_rank_layout"
@ -270,7 +265,7 @@
android:id="@+id/hour_rank_list"
android:layout_width="wrap_content"
android:layout_height="20dp"
android:layout_marginStart="-2dp"
android:layout_marginStart="0dp"
android:layout_marginEnd="6dp"
android:layout_weight="2"
android:flipInterval="5000"

View File

@ -21,7 +21,6 @@
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
android:text="@string/no_rank_data"
android:textColor="#FFFFFFFF"
android:textSize="10sp" />

Binary file not shown.

Before

Width:  |  Height:  |  Size: 505 B

After

Width:  |  Height:  |  Size: 2.5 KiB