From 263ff1d63f31b2442ef8e23c3d33ad16e31d3195 Mon Sep 17 00:00:00 2001 From: zhpanvip Date: Mon, 6 Feb 2023 10:57:39 +0800 Subject: [PATCH] Bug Fix #277 --- .../zhpan/banner/fragment/PageFragment.kt | 328 +++++++++--------- app/src/main/res/layout/fragment_find.xml | 21 +- app/src/main/res/values/strings.xml | 2 + .../com/zhpan/bannerview/BannerViewPager.java | 12 +- 4 files changed, 192 insertions(+), 171 deletions(-) diff --git a/app/src/main/java/com/example/zhpan/banner/fragment/PageFragment.kt b/app/src/main/java/com/example/zhpan/banner/fragment/PageFragment.kt index f6c2da1..fdb426e 100644 --- a/app/src/main/java/com/example/zhpan/banner/fragment/PageFragment.kt +++ b/app/src/main/java/com/example/zhpan/banner/fragment/PageFragment.kt @@ -2,6 +2,7 @@ package com.example.zhpan.banner.fragment import android.os.Bundle import android.view.View +import android.widget.Button import android.widget.RadioGroup import com.blankj.utilcode.util.ToastUtils import com.example.zhpan.banner.R @@ -18,178 +19,187 @@ import com.zhpan.indicator.enums.IndicatorSlideMode * Created by zhpan on 2018/7/24. */ class PageFragment : BaseFragment() { - private lateinit var mViewPager: BannerViewPager - private lateinit var mRadioGroupPageStyle: RadioGroup - private lateinit var mRadioGroupMoreStyle: RadioGroup - override val layout: Int - get() = R.layout.fragment_find + private lateinit var mViewPager: BannerViewPager + private lateinit var mRadioGroupPageStyle: RadioGroup + private lateinit var mRadioGroupMoreStyle: RadioGroup + override val layout: Int + get() = R.layout.fragment_find - override fun initTitle() {} - override fun initView(savedInstanceState: Bundle?, view: View) { - mViewPager = view.findViewById(R.id.banner_view) - mRadioGroupPageStyle = view.findViewById(R.id.rg_page_style) - mRadioGroupMoreStyle = view.findViewById(R.id.rg_more_page_style) - initBVP() - initRadioGroup() - view.findViewById(R.id.rb_multi_page_overlap).performClick() + override fun initTitle() {} + override fun initView(savedInstanceState: Bundle?, view: View) { + mViewPager = view.findViewById(R.id.banner_view) + mRadioGroupPageStyle = view.findViewById(R.id.rg_page_style) + mRadioGroupMoreStyle = view.findViewById(R.id.rg_more_page_style) + view.findViewById