How to add a clickable element in a custom activity (Reading a selector)

Hi, I want to create a custom activity and I want to introduce a clickable element inside of it.
for getting selector from either a webpage or an application. Do you have any idea about how to do it?
Thanks in advance!!