My current question or problem is that I want to be able to create a shortcut on the screen (currently as I could see in the documentation it is called a pinned access) that allows the user to activate a voice recorder just by stepping or dragging the icon (shortcut) that It will be on one of the sides of the screen without the need to directly access my application, an example of what I want to achieve is the
DU Speed Booster & Optimizer cleaner which brings a function called one-touch optimization from an icon of spaceship that you drag to the center of the screen and it shoots out with an animation. This is exactly what I want to achieve, but instead of a flying spaceship it will be a microphone icon (this is what I mean by custom).
I apologize for not presenting even a bit of code because I don't know much about this topic and the only thing I have so far is what the documentation offers. If you have an idea, suggestion or correction please let me know.
Thank you and I look forward to your help.
If I understand correctly, what you are looking for is a floating element that you can move around the screen.
I leave you a tutorial Android Floating Widget
Or if you just want the element to float in your app, you can use the following Assertive-touch component
Very easy to implement and customize