Move on demand dialog layout to resources

Reading the activity manager sources revealed how to do this :-)