(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View { | |
binding = DataBindingUtil.inflate(inflater, R.layout.your_fragment, container, false) | |
binding.homeAction.setOnClickListener { select(R.id.home_action) } | |
binding.likesAction.setOnClickListener { select(R.id.likes_action) } | |
binding.searchAction.setOnClickListener { select(R.id.search_action) } | |
binding.profileAction.setOnClickListener { select(R.id.profile_action) } | |
return binding.root | |
} | |
fun select(id: Int) { |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.