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