Skip to content

Instantly share code, notes, and snippets.

View rbenza's full-sized avatar

Remy Benza rbenza

View GitHub Profile
@rbenza
rbenza / Android Lifecycle aware View extensions
Last active November 13, 2021 12:02
Android Lifecycle aware View extensions
import android.os.Looper
import android.text.TextWatcher
import android.view.KeyEvent
import android.view.MotionEvent
import android.view.View
import android.widget.TextView
import androidx.annotation.MainThread
import androidx.core.widget.addTextChangedListener
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner
@rbenza
rbenza / Multiple backstacks for Navigation Components
Last active May 2, 2020 13:04
Navigation on Android – past, present and future
/*
* Copyright 2019, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software