Android: How to make sliding buttons like phone unlock button on screensaver?

android, android-widget

Solution

You should use SeekBar to achieve what you want. http://developer.android.com/reference/android/widget/SeekBar.html

Here is a good example

http://www.techrepublic.com/blog/app-builder/androids-seekbar-your-way/943

Problem

I don't know how exactly this type of buttons is called that's why I can't even google about it. You use that button to unlock phone - tap on it and move from left to right. I'd like to add same button in my app. How to do it?

Original source