Skip to content

Instantly share code, notes, and snippets.

@laramartin
Created March 9, 2019 17:25
Show Gist options
  • Save laramartin/020a8529842a4659282a3017c4563a8d to your computer and use it in GitHub Desktop.
Save laramartin/020a8529842a4659282a3017c4563a8d to your computer and use it in GitHub Desktop.
private fun displaySingleLayout(view: View) {
view.findViewById<TextView>(R.id.account_textview).setOnClickListener(
Navigation.createNavigateOnClickListener(R.id.action_profile_fragment_to_fragment_account)
)
view.findViewById<TextView>(R.id.notifications_textview).setOnClickListener(
Navigation.createNavigateOnClickListener(R.id.action_profile_fragment_to_fragment_notifications)
)
view.findViewById<TextView>(R.id.settings_textview).setOnClickListener(
Navigation.createNavigateOnClickListener(R.id.action_profile_fragment_to_fragment_settings)
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment