Skip to content

Instantly share code, notes, and snippets.

@cutiko
Last active October 1, 2021 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cutiko/e9d205c597dcfd73c19190881a207e6f to your computer and use it in GitHub Desktop.
Save cutiko/e9d205c597dcfd73c19190881a207e6f to your computer and use it in GitHub Desktop.
Simplest Placeholder Fragment for testing navigation
class SimplestPlaceholderFragment : Fragment() {
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
): View? {
return TextView(requireContext()).apply {
text = "PLACE HOLDER FRAGMENT"
gravity = Gravity.CENTER
layoutParams = ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT
)
setBackgroundResource(android.R.color.holo_red_dark)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment