@Nullable
	@Override
	public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
		return new GLAudioVisualizationView.Builder(getContext())
				.setBubblesSize(R.dimen.bubble_size)
				.setBubblesRandomizeSize(true)
				.setWavesHeight(R.dimen.wave_height)
				.setWavesFooterHeight(R.dimen.footer_height)
				.setWavesCount(7)
				.setLayersCount(4)
				.setBackgroundColorRes(R.color.av_color_bg)
				.setLayerColors(R.array.av_colors)
                .setBubblesPerLayer(16)
				.build();
	}
Fragment with visualization of audio output.
app/src/main/java/com/cleveroad/example/AudioVisualizationFragment.java