Skip to content

Instantly share code, notes, and snippets.

View sjaramillo10's full-sized avatar
💻

Severiano Jaramillo sjaramillo10

💻
View GitHub Profile
@sjaramillo10
sjaramillo10 / FragmentA.kt
Created May 10, 2021 16:33 — forked from gpeal/FragmentA.kt
View Binding Delegates
class WifiNetworksFragment : TonalFragment(R.layout.wifi_networks_fragment) {
// This automatically creates and clears the binding in a lifecycle-aware way.
private val binding: WifiNetworksFragmentBinding by viewBinding()
...
}
class WifiNetworkView @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,