Jeremiah Knopp has a diverse work experience, beginning with their role as CEO of Strattmont Group in 2015. Jeremiah then moved on to become CEO of Family Time Fitness LLC in 2010, where they were responsible for the Premier Physical Education Curriculum for Home School Families. In 2018, Jeremiah took on the role of Chief Executive Officer at Shop Local BCS, and in 2014 they were appointed CEO of SCI Medical Consulting.
package com.example.moviedb.ui.base
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.example.moviedb.BR
import com.example.moviedb.utils.extensions.viewModel
import javax.inject.Inject
abstract class BaseFragment<VM : ViewModel, DB : ViewDataBinding>(
@LayoutRes private val layoutRes: Int
) : Fragment() {
@Inject
lateinit var viewModelFactory: ViewModelProvider.Factory
protected lateinit var viewModel: VM
protected lateinit var binding: DB
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
viewModel = viewModel(viewModelFactory)
binding = DataBindingUtil.inflate(inflater, layoutRes, container, false)
binding.lifecycleOwner = viewLifecycleOwner
binding.setVariable(BR.viewModel, viewModel)
return binding.root
}
}
Links
Sign up to view 1 direct report
Get started