From ba8778ae447a544d4eaed221114edee8ed4d90dd Mon Sep 17 00:00:00 2001 From: ningwenqiang Date: Mon, 4 Nov 2024 17:38:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BE=E5=8C=BA=E5=A2=9E=E5=8A=A0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/main/views/MainHomeComViewHolder.java | 2 +- .../com/yunbao/main/views/MainHomeFollComViewHolder.java | 8 ++++++++ .../java/com/yunbao/main/views/MainHomeNewViewHolder.java | 6 ++++++ .../com/yunbao/main/views/MainHomeRecomComViewHolder.java | 6 ++++++ main/src/main/res/layout/activity_entry2.xml | 2 +- 5 files changed, 22 insertions(+), 2 deletions(-) diff --git a/main/src/main/java/com/yunbao/main/views/MainHomeComViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainHomeComViewHolder.java index ec2a49cfa..a9d7fd647 100644 --- a/main/src/main/java/com/yunbao/main/views/MainHomeComViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainHomeComViewHolder.java @@ -34,7 +34,7 @@ public class MainHomeComViewHolder extends AbsMainHomeParentComViewHolder { private MainHomeFollComViewHolder mainHomeFollLiveViewHolder; private MainHomeNewViewHolder mainHomeLiveViewHolder; private MainHomeRecomComViewHolder mainHomeRecomComViewHolder; - private MainHomeGameViewHolder mainHomeGameLiveViewHolder; + private final String mPageName = "home_page"; private TextView tvPlay; diff --git a/main/src/main/java/com/yunbao/main/views/MainHomeFollComViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainHomeFollComViewHolder.java index 5cf128f52..195f6d8c3 100644 --- a/main/src/main/java/com/yunbao/main/views/MainHomeFollComViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainHomeFollComViewHolder.java @@ -63,6 +63,14 @@ public class MainHomeFollComViewHolder extends AbsMainHomeChildViewHolder implem } } + @Override + public void onReStart() { + super.onReStart(); + mRefreshView.initData(); + } + + + @Override public void init() { diff --git a/main/src/main/java/com/yunbao/main/views/MainHomeNewViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainHomeNewViewHolder.java index 7dda1f333..d43037ae0 100644 --- a/main/src/main/java/com/yunbao/main/views/MainHomeNewViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainHomeNewViewHolder.java @@ -89,6 +89,12 @@ public class MainHomeNewViewHolder extends AbsMainHomeChildViewHolder implements } } + @Override + public void onReStart() { + super.onReStart(); + mRefreshView.initData(); + } + @Override public void init() { List list = CommonAppConfig.getCommunityTypeList(true, mContext); diff --git a/main/src/main/java/com/yunbao/main/views/MainHomeRecomComViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainHomeRecomComViewHolder.java index 207d75385..e5f6de2f9 100644 --- a/main/src/main/java/com/yunbao/main/views/MainHomeRecomComViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainHomeRecomComViewHolder.java @@ -66,6 +66,12 @@ public class MainHomeRecomComViewHolder extends AbsMainHomeChildViewHolder imple } } + @Override + public void onReStart() { + super.onReStart(); + mRefreshView.initData(); + } + @Override public void init() { diff --git a/main/src/main/res/layout/activity_entry2.xml b/main/src/main/res/layout/activity_entry2.xml index 44340833d..c916f338a 100644 --- a/main/src/main/res/layout/activity_entry2.xml +++ b/main/src/main/res/layout/activity_entry2.xml @@ -58,7 +58,7 @@ android:textSize="14sp" app:layout_constraintBottom_toBottomOf="@+id/lt_btn_facebook" app:layout_constraintEnd_toEndOf="@+id/lt_btn_facebook" - app:layout_constraintHorizontal_bias="0.4" + app:layout_constraintHorizontal_bias="0.46" app:layout_constraintStart_toEndOf="@+id/imageView5" app:layout_constraintTop_toTopOf="@+id/lt_btn_facebook" />