I use this VisualizerView in my project but if I have a short recording, the visualization ends before the end of the screen. The following screenshoot shows how it looks:
If I have long recording (more than about 40 second) VisualiserView look like this (it ends almost at the end of screen):
I want to VisualizerView width will be the same as screen width and its duration will be the same as recording duration
(recording duration is always known before recording).
How can I fix it?