社区增加数据的刷新

This commit is contained in:
ningwenqiang 2024-11-04 17:38:46 +08:00
parent 2c93a3b95a
commit ba8778ae44
5 changed files with 22 additions and 2 deletions

View File

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

View File

@ -63,6 +63,14 @@ public class MainHomeFollComViewHolder extends AbsMainHomeChildViewHolder implem
}
}
@Override
public void onReStart() {
super.onReStart();
mRefreshView.initData();
}
@Override
public void init() {

View File

@ -89,6 +89,12 @@ public class MainHomeNewViewHolder extends AbsMainHomeChildViewHolder implements
}
}
@Override
public void onReStart() {
super.onReStart();
mRefreshView.initData();
}
@Override
public void init() {
List<NewCommunityType> list = CommonAppConfig.getCommunityTypeList(true, mContext);

View File

@ -66,6 +66,12 @@ public class MainHomeRecomComViewHolder extends AbsMainHomeChildViewHolder imple
}
}
@Override
public void onReStart() {
super.onReStart();
mRefreshView.initData();
}
@Override
public void init() {

View File

@ -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" />