VolumeDialog
A vertical slider with customizable background, to have a pop-up volume control.
I did this to use it with the player extension I made and to be able to control the volume in a more attractive way.
Although it can be used to control more things.
Update v1.0.1
Jan 12, 2025
Some bugs fixed...
- Failed to compile (fixed).
- Thumb does not scroll with progress (fixed).
An improvement
- Adjusted dialog position to start from the middle of the screen up.
Functions
DialogPosition
Change the dialog position, left or right, useful if you are left-handed.
Added a helper block.
DialogProperties
Combined the VolumeDialog and ChangeColors functions into the VolumeProperties function.
ShowVolumeDialog
Extracted this function from the removed VolumeDialog function, so that you can set the properties separately and not be calling all the other functions every time the dialog is called.
Icon
Sets the icon for the dialog from assets.
Events
IconClicked
Fires when the icon is clicked.
VolumeValueChanged
Fires when the value of the SeekBar
changes.
Properties
ThumbPosition
Sets the position of the thumb
.
CornerRadius
Sets the radius of the dialog corners in pixels.
InactivityTimeout
Sets the inactivity time in milliseconds. The dialog will close after this inactivity time.
IconBottomMargin
Sets the bottom margin between the icon and the bottom edge of the dialog in pixels.
aia project:
VolumeDialog.aia (2.1 MB)
Extension Version 1.0.1
joejsanz.joedevvolumedialog.aix (12.5 KB)
Created with Fast. v2.2.0
fast-cli
minSdk: 21, maxSdk: 34, JDK: 11
Thanks.