grahamborland
04/01/2020, 8:53 AMLayoutRunner
to be an inner class of the Activity so it can access invalidateOptionsMenu()
and onOptionsItemSelected()
but in looking through the samples I didn’t see anything like this. Any pointers? If my Rendering
includes fields to be rendered in a normal view and fields to toggle an action bar menu item, how should I approach that?Zach Klippenstein (he/him) [MOD]
04/01/2020, 1:54 PMActivity
expose menu selection as an observable, and then in your LayoutRunner
search up the Context
chain to find your activity.Zach Klippenstein (he/him) [MOD]
04/01/2020, 1:59 PMtrue
all the time, just use a custom callback that returns a boolean instead of an Observable
.grahamborland
04/01/2020, 4:16 PM