The first step: Introduce the open source library on github in the project's build.gradle:
implementation 'top.androidman:superfamily:2.1.0'
To quote the source code on github:
https://github.com/ansnail/SuperFamily
The main use is SuperButton.java