Skip to content

Android library to easily implement a slide to unlock feature.

Notifications You must be signed in to change notification settings

www40/Slide-To-Unlock

Repository files navigation

Slide-To-Unlock

Android library to easily implement a slide to unlock feature.

alt tag

Usage:

  1. Add to your layout:

     <com.hamondigital.unlock.UnlockBar
         	android:id="@+id/unlock"
         	android:layout_width="match_parent"
         	android:layout_height="wrap_content" />
    
  2. Implement OnUnlockListener into your Activity:

     // Retrieve layout elements
     UnlockBar unlock = (UnlockBar) findViewById(R.id.unlock);
     
     // Attach listener
     unlock.setOnUnlockListener(new OnUnlockListener() {
     	@Override
     	public void onUnlock()
     	{
     		Toast.makeText(TestActivity.this, "You've successfully unlocked it !", Toast.LENGTH_LONG).show();
     	}
     });
    

See TestActivity for a complete sample.

About

Android library to easily implement a slide to unlock feature.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages