首页刷新头部UI修改
This commit is contained in:
@@ -33,6 +33,7 @@ import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool;
|
|||||||
import com.bumptech.glide.load.resource.bitmap.BitmapTransformation;
|
import com.bumptech.glide.load.resource.bitmap.BitmapTransformation;
|
||||||
import com.bumptech.glide.request.RequestOptions;
|
import com.bumptech.glide.request.RequestOptions;
|
||||||
import com.coorchice.library.utils.LogUtils;
|
import com.coorchice.library.utils.LogUtils;
|
||||||
|
import com.scwang.smartrefresh.layout.internal.ProgressDrawable;
|
||||||
import com.yizhuan.erban.ui.utils.ImageLoadUtilsV2;
|
import com.yizhuan.erban.ui.utils.ImageLoadUtilsV2;
|
||||||
import com.yizhuan.erban.ui.widget.rollviewpager.Util;
|
import com.yizhuan.erban.ui.widget.rollviewpager.Util;
|
||||||
import com.yizhuan.erban.ui.widget.rollviewpager.hintview.ColorPointHintView;
|
import com.yizhuan.erban.ui.widget.rollviewpager.hintview.ColorPointHintView;
|
||||||
@@ -251,6 +252,13 @@ public class GameHomeFragment extends BaseMvpFragment<IMainFragmentView, MainFra
|
|||||||
getHomeConcern();
|
getHomeConcern();
|
||||||
EventBus.getDefault().post(new RefreshHomeDataEvent());
|
EventBus.getDefault().post(new RefreshHomeDataEvent());
|
||||||
});
|
});
|
||||||
|
mBinding.refreshLayout.setEnableOverScrollBounce(false);
|
||||||
|
mBinding.refreshHeader.getLastUpdateText().setTextColor(Color.WHITE);
|
||||||
|
mBinding.refreshHeader.getTitleText().setTextColor(Color.WHITE);
|
||||||
|
mBinding.refreshHeader.setBackgroundResource(R.drawable.bg_shape_home_top);
|
||||||
|
ProgressDrawable progressDrawable = new ProgressDrawable();
|
||||||
|
progressDrawable.setColor(Color.WHITE);
|
||||||
|
mBinding.refreshHeader.getProgressView().setImageDrawable(progressDrawable);
|
||||||
}
|
}
|
||||||
|
|
||||||
//尝试加载不需要登录就可以加载的数据
|
//尝试加载不需要登录就可以加载的数据
|
||||||
|
@@ -90,9 +90,10 @@
|
|||||||
android:layout_marginTop="80dp">
|
android:layout_marginTop="80dp">
|
||||||
|
|
||||||
<com.scwang.smartrefresh.layout.header.ClassicsHeader
|
<com.scwang.smartrefresh.layout.header.ClassicsHeader
|
||||||
|
android:id="@+id/refresh_header"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/bg_shape_home_top" />
|
/>
|
||||||
|
|
||||||
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
||||||
android:id="@+id/coordinator_layout"
|
android:id="@+id/coordinator_layout"
|
||||||
|
Reference in New Issue
Block a user