Skip to content

Instantly share code, notes, and snippets.

@SamueldaCostaAraujoNunes
Created July 30, 2021 13:54
Show Gist options
  • Save SamueldaCostaAraujoNunes/22d4ce01b0913945364d268270e30695 to your computer and use it in GitHub Desktop.
Save SamueldaCostaAraujoNunes/22d4ce01b0913945364d268270e30695 to your computer and use it in GitHub Desktop.
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