...
|
...
|
@@ -13,6 +13,7 @@ import androidx.recyclerview.widget.RecyclerView |
|
|
import com.br_technology.securitytrain_master.R
|
|
|
import com.br_technology.securitytrain_master.databinding.FragmentHomeBinding
|
|
|
import com.br_technology.securitytrain_master.ui.home.activity.DatabaseActivity
|
|
|
import com.br_technology.securitytrain_master.ui.home.activity.OnlineActivity
|
|
|
import com.br_technology.securitytrain_master.ui.home.activity.SearchActivity
|
|
|
import com.br_technology.securitytrain_master.ui.home.activity.TextCourseActivity
|
|
|
import com.br_technology.securitytrain_master.ui.home.adapter.RecommendDataAdapter
|
...
|
...
|
@@ -23,6 +24,8 @@ import com.br_technology.securitytrain_master.ui.home.viewmodel.MineViewModel |
|
|
import com.bumptech.glide.Glide
|
|
|
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
|
|
|
import com.bumptech.glide.request.RequestOptions
|
|
|
import com.gyf.immersionbar.ImmersionBar
|
|
|
import com.gyf.immersionbar.components.SimpleImmersionOwner
|
|
|
import com.wjx.android.wanandroidmvvm.base.view.BaseLifeCycleFragment
|
|
|
import com.youth.banner.Banner
|
|
|
import com.youth.banner.adapter.BannerAdapter
|
...
|
...
|
@@ -37,7 +40,7 @@ import com.youth.banner.indicator.CircleIndicator |
|
|
* des:
|
|
|
*/
|
|
|
class HomeFragment :
|
|
|
BaseLifeCycleFragment<MineViewModel, FragmentHomeBinding>(FragmentHomeBinding::inflate) {
|
|
|
BaseLifeCycleFragment<MineViewModel, FragmentHomeBinding>(FragmentHomeBinding::inflate) ,SimpleImmersionOwner{
|
|
|
override fun initDataObserver() {
|
|
|
|
|
|
}
|
...
|
...
|
@@ -181,6 +184,13 @@ class HomeFragment : |
|
|
|
|
|
}
|
|
|
|
|
|
override fun initImmersionBar() {
|
|
|
}
|
|
|
|
|
|
override fun immersionBarEnabled(): Boolean {
|
|
|
return true
|
|
|
}
|
|
|
|
|
|
}
|
|
|
//class HomeFragment : Fragment() {
|
|
|
// override fun onCreateView(
|
...
|
...
|
|