A lot of good open source projects on GitHub show the demo, all using a GIF picture, very vivid concrete.
I also wanted to create a GIF for my app, but I found a lap and didn't find the right apk, so I thought of another way.
Record video-and then intercept it from the video
First 4.4 After Android native started just screen recording, you can use ADB to operate.
ADB Shell Screenrecord/sdcard/movie.mp4
This can be in the SD card root directory to get a screen video file named "Movie.mp4", of course, the path, file name can be customized, but note next time do not use the same file name, otherwise it will be directly overwritten, without any hint.
During the recording process, you can press CTRL + C shortcut key at any time to terminate.
The command also supports additional parameters such as the bit-rate of the control rate, the size of the control resolution, the time-limit of the control time, and the ability to select "show touches" in the developer options to show the location of the touch operation.
Screen recording can also be found in the Android Studio DDMS panel.
Pull the recorded video onto your PC, and then record it using the desktop software Gifcam, or use some player with GIF interception, such as QQ audio.
Gifcam Official website: http://blog.bahraniapps.com/gifcam/
Show GIF for app recording