Making android 'select all' option to select custom content

anyone ever been to this situation where you want to make the android ‘select all’ option to select custom content? Now ‘select all’ selects the whole page. I only want it to select one part of the page.
Any help will be appreciable.
please check the screenshot below attached