How To Implement View Interface Like This In Android Stack Overflow

How To Implement View Interface Like This In Android Stack Overflow