update:调整Banner高度

update:调整守护席位置
update:调整观众边距
This commit is contained in:
zlzw 2022-08-31 14:31:51 +08:00
parent 218525d51c
commit ba92e34b7d
4 changed files with 36 additions and 33 deletions

View File

@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/live_user_root_layout"
android:layout_width="38dp"
android:layout_marginEnd="5dp"
android:layout_height="38dp">
<!-- <ImageView-->

View File

@ -153,8 +153,8 @@
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_marginEnd="5dp"
android:src="@mipmap/live_icon_focus"
android:gravity="center"
android:src="@mipmap/live_icon_focus"
android:textColor="@color/white"
android:visibility="visible" />
@ -170,6 +170,33 @@
</LinearLayout>
<RelativeLayout
android:layout_width="38dp"
android:layout_height="38dp"
android:layout_gravity="center"
android:layout_marginStart="8dp"
android:scaleType="centerCrop">
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/user_guard"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:scaleType="centerCrop"
android:src="@mipmap/img_guardian_empty"
app:riv_oval="true" />
<com.opensource.svgaplayer.SVGAImageView
android:id="@+id/gift_svga"
android:layout_width="38dp"
android:layout_height="38dp"
android:src="@drawable/img_guardian_online"
android:visibility="gone"
app:autoPlay="true" />
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
@ -181,50 +208,24 @@
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="end|center"
android:layout_alignParentRight="true"
android:gravity="end|center"
android:orientation="horizontal">
<RelativeLayout
android:layout_width="38dp"
android:layout_height="38dp"
android:layout_gravity="center"
android:scaleType="centerCrop">
<com.makeramen.roundedimageview.RoundedImageView
android:id="@+id/user_guard"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:scaleType="centerCrop"
android:src="@mipmap/img_guardian_empty"
app:riv_oval="true" />
<com.opensource.svgaplayer.SVGAImageView
android:id="@+id/gift_svga"
android:layout_width="38dp"
android:layout_height="38dp"
android:src="@drawable/img_guardian_online"
android:visibility="gone"
app:autoPlay="true" />
</RelativeLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/user_recyclerView"
android:layout_width="80dp"
android:layout_gravity="end|center"
android:layout_height="40dp"
android:layout_gravity="end|center"
android:layout_marginRight="-3dp"
android:overScrollMode="never" />
<ImageView
android:id="@+id/user_more"
android:layout_width="30dp"
android:layout_gravity="center"
android:layout_height="40dp"
android:layout_gravity="center"
android:src="@mipmap/live_users_more" />
<ImageView
@ -1862,9 +1863,9 @@
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/room_fast_msg"
android:layout_width="match_parent"
android:layout_marginStart="10dp"
android:layout_height="30dp"
android:layout_alignParentBottom="true"
android:layout_marginStart="10dp"
android:visibility="gone" />
</RelativeLayout>

View File

@ -57,7 +57,7 @@ public class MainHomeLiveAdapter extends RefreshAdapter<LiveBean> {
this.context = context;
this.Height = h;
mHeadView = mInflater.inflate(R.layout.item_main_home_live_head, null, false);
mHeadView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, DpUtil.dp2px(140)));
mHeadView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, DpUtil.dp2px(120)));
}
public View getHeadView() {

View File

@ -14,7 +14,7 @@
<com.ms.banner.Banner
android:id="@+id/banner"
android:layout_width="match_parent"
android:layout_height="130dp"
android:layout_height="wrap_content"
android:layout_marginLeft="3dp"
android:layout_marginBottom="5dp"
app:delay_time="3000"