update 礼物墙 布局文件
This commit is contained in:
parent
93db808f8b
commit
250d4832a3
@ -142,8 +142,8 @@ public class GiftWallMainTab2ListAdapter extends RecyclerView.Adapter<GiftWallMa
|
|||||||
imageView8.setVisibility(View.VISIBLE);
|
imageView8.setVisibility(View.VISIBLE);
|
||||||
tv_wait.setVisibility(View.GONE);
|
tv_wait.setVisibility(View.GONE);
|
||||||
gift_number.setText(String.format(Locale.getDefault(), "%d", giftData.getNeedCoinTotal()));
|
gift_number.setText(String.format(Locale.getDefault(), "%d", giftData.getNeedCoinTotal()));
|
||||||
ImgLoader.display(mContext, giftData.getNamingLiveAvatar(), user1Avatar, 35, 35);
|
//ImgLoader.display(mContext, giftData.getNamingLiveAvatar(), user1Avatar, 35, 35);
|
||||||
ImgLoader.display(mContext, giftData.getNamingUserAvatar(), user2Avatar, 35, 35);
|
// ImgLoader.display(mContext, giftData.getNamingUserAvatar(), user2Avatar, 35, 35);
|
||||||
anchor_nickname.setText(giftData.getNamingLiveNicename());
|
anchor_nickname.setText(giftData.getNamingLiveNicename());
|
||||||
user_nickname.setText(giftData.getNamingUserNicename());
|
user_nickname.setText(giftData.getNamingUserNicename());
|
||||||
ViewClicksAntiShake.clicksAntiShake(itemView, () -> {
|
ViewClicksAntiShake.clicksAntiShake(itemView, () -> {
|
||||||
|
@ -166,90 +166,101 @@
|
|||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/topLayout"
|
android:id="@+id/topLayout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="10dp"
|
android:layout_marginStart="8dp"
|
||||||
android:layout_marginEnd="10dp"
|
android:layout_marginEnd="15dp"
|
||||||
android:gravity="bottom"
|
android:gravity="bottom|center"
|
||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/imageView7">
|
app:layout_constraintTop_toBottomOf="@+id/imageView7">
|
||||||
|
|
||||||
<RelativeLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/two_layout"
|
android:id="@+id/two_layout"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1">
|
||||||
android:gravity="bottom">
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imageView17"
|
android:id="@+id/imageView17"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentBottom="true"
|
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:scaleType="centerCrop"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_bg_two" />
|
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_bg_two" />
|
||||||
|
|
||||||
<LinearLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:layout_width="match_parent"
|
android:id="@+id/userAvatar2Layout"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_height="0dp"
|
||||||
android:layout_marginEnd="10dp"
|
android:layout_marginTop="40dp"
|
||||||
android:gravity="center_horizontal"
|
android:layout_marginBottom="50dp"
|
||||||
android:orientation="vertical">
|
app:layout_constraintBottom_toBottomOf="@+id/user_name_2"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/imageView17"
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
app:layout_constraintStart_toStartOf="@+id/imageView17"
|
||||||
android:id="@+id/userAvatar2Layout"
|
app:layout_constraintTop_toTopOf="@+id/imageView17">
|
||||||
android:layout_width="58dp"
|
|
||||||
android:layout_height="58dp"
|
|
||||||
android:layout_marginTop="41dp"
|
|
||||||
android:background="@mipmap/gift_wall_tab2_classic_info_avatar1">
|
|
||||||
|
|
||||||
<com.makeramen.roundedimageview.RoundedImageView
|
|
||||||
android:id="@+id/user_avatar_2"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginEnd="1dp"
|
|
||||||
android:src="@mipmap/icon_avatar_placeholder"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:riv_oval="true" />
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imageView12"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:src="@mipmap/gift_wall_tab2_classic_info_avatar1"
|
||||||
android:layout_marginBottom="5dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_twwo" />
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<TextView
|
<com.makeramen.roundedimageview.RoundedImageView
|
||||||
android:id="@+id/user_name_2"
|
android:id="@+id/user_avatar_2"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
android:layout_above="@+id/user_value_2"
|
android:src="@mipmap/icon_avatar_placeholder"
|
||||||
android:ellipsize="end"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
android:gravity="center"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
android:maxLines="1"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
android:text="TextView"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
android:textColor="#FFFFFF"
|
app:riv_oval="true" />
|
||||||
android:textSize="14sp" />
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<TextView
|
<ImageView
|
||||||
android:id="@+id/user_value_2"
|
android:id="@+id/imageView12"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentBottom="true"
|
app:layout_constraintEnd_toEndOf="@+id/userAvatar2Layout"
|
||||||
android:layout_marginBottom="5dp"
|
app:layout_constraintStart_toStartOf="@+id/userAvatar2Layout"
|
||||||
android:text="TextView"
|
app:layout_constraintTop_toBottomOf="@+id/userAvatar2Layout"
|
||||||
android:textColor="#FFFFFF"
|
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_twwo" />
|
||||||
android:textSize="20sp" />
|
|
||||||
|
|
||||||
</LinearLayout>
|
<TextView
|
||||||
|
android:id="@+id/user_name_2"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="10dp"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:gravity="center"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:text="TextView"
|
||||||
|
android:textColor="#FFFFFF"
|
||||||
|
android:textSize="14sp"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/user_value_2"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/imageView17"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/imageView17"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
<TextView
|
||||||
|
android:id="@+id/user_value_2"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_marginBottom="5dp"
|
||||||
|
android:text="TextView"
|
||||||
|
android:textColor="#FFFFFF"
|
||||||
|
android:textSize="20sp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="@+id/imageView17"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/user_name_2"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/user_name_2" />
|
||||||
|
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/one_layout"
|
android:id="@+id/one_layout"
|
||||||
@ -270,17 +281,28 @@
|
|||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/userAvatar1Layout"
|
android:id="@+id/userAvatar1Layout"
|
||||||
android:layout_width="70dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="70dp"
|
android:layout_height="0dp"
|
||||||
android:background="@mipmap/gift_wall_tab2_classic_info_avatar1"
|
android:layout_marginTop="70dp"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/imageView11"
|
android:layout_marginBottom="90dp"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintBottom_toBottomOf="@+id/user_value_1"
|
||||||
app:layout_constraintStart_toStartOf="parent">
|
app:layout_constraintEnd_toEndOf="@+id/imageView9"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/imageView9"
|
||||||
|
app:layout_constraintTop_toTopOf="@+id/imageView9">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:src="@mipmap/gift_wall_tab2_classic_info_avatar1"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<com.makeramen.roundedimageview.RoundedImageView
|
<com.makeramen.roundedimageview.RoundedImageView
|
||||||
android:id="@+id/user_avatar_1"
|
android:id="@+id/user_avatar_1"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
android:src="@mipmap/icon_avatar_placeholder"
|
android:src="@mipmap/icon_avatar_placeholder"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
@ -293,10 +315,9 @@
|
|||||||
android:id="@+id/imageView11"
|
android:id="@+id/imageView11"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="10dp"
|
|
||||||
app:layout_constraintBottom_toTopOf="@+id/user_name_1"
|
|
||||||
app:layout_constraintEnd_toEndOf="@+id/userAvatar1Layout"
|
app:layout_constraintEnd_toEndOf="@+id/userAvatar1Layout"
|
||||||
app:layout_constraintStart_toStartOf="@+id/userAvatar1Layout"
|
app:layout_constraintStart_toStartOf="@+id/userAvatar1Layout"
|
||||||
|
app:layout_constraintTop_toBottomOf="@+id/userAvatar1Layout"
|
||||||
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_one" />
|
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_one" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@ -329,78 +350,90 @@
|
|||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<RelativeLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:id="@+id/three_layout"
|
android:id="@+id/three_layout"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="5dp"
|
|
||||||
android:layout_weight="1">
|
android:layout_weight="1">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imageView16"
|
android:id="@+id/imageView16"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignParentBottom="true"
|
|
||||||
android:adjustViewBounds="true"
|
android:adjustViewBounds="true"
|
||||||
android:scaleType="centerCrop"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_bg_three" />
|
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_bg_three" />
|
||||||
|
|
||||||
<LinearLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
android:layout_width="match_parent"
|
android:id="@+id/userAvatar3Layout"
|
||||||
android:layout_height="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:paddingStart="10dp"
|
android:layout_height="0dp"
|
||||||
android:layout_alignParentBottom="true"
|
android:layout_marginTop="45dp"
|
||||||
android:gravity="center_horizontal"
|
android:layout_marginBottom="70dp"
|
||||||
android:orientation="vertical">
|
app:layout_constraintBottom_toBottomOf="@+id/user_value_3"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/imageView16"
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
app:layout_constraintStart_toStartOf="@+id/imageView16"
|
||||||
android:id="@+id/userAvatar3Layout"
|
app:layout_constraintTop_toTopOf="@+id/imageView16">
|
||||||
android:layout_width="44dp"
|
|
||||||
android:layout_height="44dp"
|
|
||||||
android:layout_marginTop="39dp"
|
|
||||||
android:background="@mipmap/gift_wall_tab2_classic_info_avatar1">
|
|
||||||
|
|
||||||
<com.makeramen.roundedimageview.RoundedImageView
|
|
||||||
android:id="@+id/user_avatar_3"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:src="@mipmap/icon_avatar_placeholder"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:riv_oval="true" />
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imageView13"
|
android:layout_width="match_parent"
|
||||||
android:layout_width="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:src="@mipmap/gift_wall_tab2_classic_info_avatar1"
|
||||||
android:layout_marginBottom="3dp"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_three" />
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<TextView
|
<com.makeramen.roundedimageview.RoundedImageView
|
||||||
android:id="@+id/user_name_3"
|
android:id="@+id/user_avatar_3"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="0dp"
|
||||||
android:ellipsize="end"
|
android:src="@mipmap/icon_avatar_placeholder"
|
||||||
android:gravity="center"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
android:maxLines="1"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
android:text="TextView"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
android:textColor="#FFFFFF"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
android:textSize="14sp" />
|
app:riv_oval="true" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<TextView
|
<ImageView
|
||||||
android:id="@+id/user_value_3"
|
android:id="@+id/imageView13"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="5dp"
|
app:layout_constraintEnd_toEndOf="@+id/userAvatar3Layout"
|
||||||
android:text="TextView"
|
app:layout_constraintStart_toStartOf="@+id/userAvatar3Layout"
|
||||||
android:textColor="#FFFFFF"
|
app:layout_constraintTop_toBottomOf="@+id/userAvatar3Layout"
|
||||||
android:textSize="20sp" />
|
app:srcCompat="@mipmap/gift_wall_tab2_classic_info_three" />
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
</RelativeLayout>
|
<TextView
|
||||||
|
android:id="@+id/user_name_3"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="10dp"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:gravity="center"
|
||||||
|
android:maxLines="1"
|
||||||
|
android:text="TextView"
|
||||||
|
android:textColor="#FFFFFF"
|
||||||
|
android:textSize="14sp"
|
||||||
|
app:layout_constraintBottom_toTopOf="@+id/user_value_3"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/imageView16"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/imageView16" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/user_value_3"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="0dp"
|
||||||
|
android:layout_marginBottom="5dp"
|
||||||
|
android:text="TextView"
|
||||||
|
android:textColor="#FFFFFF"
|
||||||
|
android:textSize="20sp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="@+id/user_name_3"
|
||||||
|
app:layout_constraintStart_toStartOf="@+id/user_name_3" />
|
||||||
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user