Created
July 30, 2021 13:54
-
-
Save SamueldaCostaAraujoNunes/22d4ce01b0913945364d268270e30695 to your computer and use it in GitHub Desktop.
This file contains 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
package br.com.samuelnunes.rickandmortyapp.ui.charactersFragment | |
import android.os.Bundle | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.fragment.app.Fragment | |
import androidx.fragment.app.viewModels | |
import br.com.samuelnunes.rickandmortyapp.databinding.CharactersFragmentBinding | |
import dagger.hilt.android.AndroidEntryPoint | |
@AndroidEntryPoint | |
class CharactersFragment : Fragment() { | |
private val viewModel: CharactersViewModel by viewModels() | |
private lateinit var binding: CharactersFragmentBinding | |
override fun onCreateView( | |
inflater: LayoutInflater, container: ViewGroup?, | |
savedInstanceState: Bundle? | |
): View { | |
return CharactersFragmentBinding.inflate(inflater, container, false).also{ | |
binding = it | |
}.root | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment