Last active
October 1, 2021 18:58
-
-
Save cutiko/e9d205c597dcfd73c19190881a207e6f to your computer and use it in GitHub Desktop.
Simplest Placeholder Fragment for testing navigation
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 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