Created
December 4, 2019 19:07
-
-
Save mym0404/7a8f3a3f57da15db6554687acc83e67a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MainFragment @Inject constructor(private val myDependency: Dependency) : Fragment() { | |
| override fun onCreateView( | |
| inflater: LayoutInflater, | |
| container: ViewGroup?, | |
| savedInstanceState: Bundle? | |
| ): View = inflater.inflate(R.layout.fragment_main, container, false) | |
| override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |
| dep_tv.text = myDependency.sayMyName() | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment