Custom View Screenshot Programmatically Not Working In Android Stack

Custom View Screenshot Programmatically Not Working In Android Stack