新增PK TOP
This commit is contained in:
parent
d20210f291
commit
749ac197de
BIN
common/src/main/res/mipmap-mdpi/icon_rank_top_box.png
Normal file
BIN
common/src/main/res/mipmap-mdpi/icon_rank_top_box.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
@ -1513,9 +1513,10 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
PkRankBean bean = listResponseModel.getData().getInfo();
|
PkRankBean bean = listResponseModel.getData().getInfo();
|
||||||
|
|
||||||
if (bean != null) {
|
if (bean != null) {
|
||||||
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(DpUtil.dp2px(44), DpUtil.dp2px(16));
|
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(DpUtil.dp2px(20), DpUtil.dp2px(22));
|
||||||
LinearLayout.LayoutParams textParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
|
LinearLayout.LayoutParams textParams = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
|
||||||
textParams.leftMargin = DpUtil.dp2px(5);
|
params.leftMargin=DpUtil.dp2px(2);
|
||||||
|
textParams.setMarginStart(DpUtil.dp2px(1));
|
||||||
|
|
||||||
View hourView = LayoutInflater.from(mContext).inflate(R.layout.view_wish_list, null);
|
View hourView = LayoutInflater.from(mContext).inflate(R.layout.view_wish_list, null);
|
||||||
ImageView titleIcon = new ImageView(mContext);
|
ImageView titleIcon = new ImageView(mContext);
|
||||||
@ -1526,7 +1527,7 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
|||||||
mPkRankText.setGravity(Gravity.CENTER);
|
mPkRankText.setGravity(Gravity.CENTER);
|
||||||
titleIcon.setImageResource(R.mipmap.icon_pk_rank);
|
titleIcon.setImageResource(R.mipmap.icon_pk_rank);
|
||||||
ImgLoader.display(mContext, bean.getImg(), mPkRankIcon);
|
ImgLoader.display(mContext, bean.getImg(), mPkRankIcon);
|
||||||
titleIcon.setLayoutParams(params);
|
titleIcon.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));
|
||||||
mPkRankIcon.setLayoutParams(params);
|
mPkRankIcon.setLayoutParams(params);
|
||||||
pkRankVf.addView(titleIcon);
|
pkRankVf.addView(titleIcon);
|
||||||
pkRankVf.addView(hourView);
|
pkRankVf.addView(hourView);
|
||||||
|
@ -518,7 +518,7 @@
|
|||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:visibility="visible"
|
android:visibility="visible"
|
||||||
android:id="@+id/live_rank_pk"
|
android:id="@+id/live_rank_pk"
|
||||||
android:layout_width="65dp"
|
android:layout_width="80dp"
|
||||||
android:layout_height="20dp"
|
android:layout_height="20dp"
|
||||||
android:background="@drawable/bg_live_item_pk_rank"
|
android:background="@drawable/bg_live_item_pk_rank"
|
||||||
android:layout_alignTop="@id/hour_rank_layout"
|
android:layout_alignTop="@id/hour_rank_layout"
|
||||||
@ -531,8 +531,6 @@
|
|||||||
android:id="@+id/rank_pk_vf"
|
android:id="@+id/rank_pk_vf"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginStart="10dp"
|
|
||||||
android:layout_marginEnd="10dp"
|
|
||||||
android:flipInterval="5000"
|
android:flipInterval="5000"
|
||||||
android:inAnimation="@anim/anim_marquee_in"
|
android:inAnimation="@anim/anim_marquee_in"
|
||||||
android:outAnimation="@anim/anim_marquee_out" />
|
android:outAnimation="@anim/anim_marquee_out" />
|
||||||
@ -1244,7 +1242,14 @@
|
|||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/icon_pk_top"
|
||||||
|
android:src="@mipmap/icon_rank_top_box"
|
||||||
|
android:layout_width="130dp"
|
||||||
|
android:layout_marginTop="40dp"
|
||||||
|
android:layout_centerHorizontal="true"
|
||||||
|
android:layout_alignTop="@+id/live_video"
|
||||||
|
android:layout_height="35dp"/>
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/lt_pk_line"
|
android:id="@+id/lt_pk_line"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
Loading…
Reference in New Issue
Block a user