I have a project to build android application use seekbar. I wanna the dot seekbar disapper is posible? if possible how to make the dot disappear. like this http://prntscr.com/bwgaok
I worked on this one and it works for me
Use this following library for circular seekbar
https://github.com/devadvance/circularseekbar
and give app:pointer_radius="0dp"
It will work better
Have you tried seekBar.getThumb().mutate().setAlpha(0); ?
If you wish to make the seekBar "unclickable" use seekBar.setEnabled(false)
Related
I know there is ObjectAnimator / ValueAnimator for Property Animation in Android, and also one can set the system-wide night mode with UiModeManager.setNightMode(int):
https://developer.android.com/reference/android/app/UiModeManager#setNightMode(int)
How could we make a color animation when switching from DayMode to NightMode? (Currently I'm using the latest Huawei phone and find no animation there, not sure if other Android phone has this feature?)
try using MotionLayout with keyTrigger
check the documentation: https://developer.android.com/reference/android/support/constraint/motion/MotionLayout#keytrigger
Hi I think the best you can do is create a light and dark theme for your app in the style.xml file.
here is a github link of someone who achieved this with a simple code example. there is even a video of how it will look.
it seems like the animation is some android default fade_in/fade_out anim but personally i think it looks nice enough. let me know if this works for you
I know it is possible to change the style of the SeekBar in android apps, but is it possible to change the shape of the progress line of a SeekBar?
I would like it to be like that:
Any ideas on how to achieve this? :)
Similar to this question here How to make custom seek bar in android?
You're not going to be able to do that with the default slider. You're going to have create a custom view. Here's some resources to get you started.
http://www.mokasocial.com/2011/02/create-a-custom-styled-ui-slider-seekbar-in-android/
http://developer.android.com/training/custom-views/create-view.html
Edited to add this other resource the may help you get the curves you want
Give a semi-circular shape to seekbar
I am having troubles with a seek bar, i am trying to create an audio settings fragment but when i customize my seekbar thumb i noticed that the progress does not start and end in where i would like to.
I tried lot of things but i cannot find the solution.
I would also like to add white lines in the background like from 1 to 10.
Thanks for the help
seems like this simple line fixed the thing:
android:thumbOffset="5dp"
Thanks anyway and hope this can help someone.
I'm just wondering if the seekbar changed in Android 2.1 . I tried to create one but it showing up as a green line with a circle on it instead of the usual yellow rectangle. If so, is there any other option to create a similar seekbar to control volume on 2.1? Thanks
You can use the setThumb() and setProgressDrawable() of SeekBar to customize the UI
Is there anyway to implement something like a trackbar on android, so I can explicity specify the values and select it?
Well i recall there were some tutorials on how to add one to a preference activity, so it is certanly possible, other than that there is the seekbar component in the sdk. you can even drag it in layout with the GUI tool.
if you have seen the media player controls and other similar things that can be added that is also a possibility although i don't know if those can be modified.
see this for customizing the seek Bar:
seekBar
also this thing about vertical seekbar can be helpfull:
Vertical seekBar
What you are you looking for is the SeekBar
http://developer.android.com/reference/android/widget/SeekBar.html