After you have installed Xposed and Hide mock, install "Xposed Pokemon".
After the installation is complete, go to Xposed app and click on modules and enable the "Xposed pokemon". Now Restart your phone.
After restarting, go to "Xposed pokemon" app and you will see a world map, simply click on the "GPS" icon, it will take you to your current location. Now, slide around the progress bar to select the running/walking speed (i recommend setting it to the lowest).
Now, click on the "enable module" if it is not enabled. Then click on the "Start" button.
A window with a joypad will appear. If you move the stick your location will also move.
Now open pokemon go and move around as much as you like. No need to switch around apps an easy trick.
Also, the walk feature on the joypad will make your avatar walk without you needing to control it, so it is very handy for hatching eggs.