Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class FragmentTwo : Fragment() {
- override fun onCreateView(
- inflater: LayoutInflater, container: ViewGroup?,
- savedInstanceState: Bundle?
- ): View? {
- return inflater.inflate(R.layout.fragment_fragment_two, container, false).apply {
- this.back_to_fragment_one.setOnClickListener {
- RxBus.instance.publish(FRAGMENT_ONE_TAG)
- }
- this.finish_app.setOnClickListener {
- RxBus.instance.publish(FINISH_APP_TAG)
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment