(I posted this question on stackOverflow, but got no answer)
This is the code I'm using, a can only change the zoom level by sliding the seekbar, not automatically. Neither select a default zoom level.
I'm using this example of cameraX/CameraController:
SeekBar linearZoomSlider = findViewById(R.id.linear_zoom_slider); linearZoomSlider.setOnSeekBarChangeListener(