robin
03/13/2017, 10:24 AMapply
will make this
point to the View you're inflating, so it's trying to use shortcuts
as an extension of the newly inflated view instead of the Activity(?) you're in. Try using this@OuterComponent.shortcuts
inside the apply to reference the same thing you're referencing outside of the apply. (Replace "OuterComponent" with the name of the class you're doing this inside of, obviously)grahamborland
03/13/2017, 10:26 AM