Android Code Snippet Pin Lock Full Source Code with Ripple Effect

### Features:

**Digital Clock** (WIB Timezone - UTC+7)
**6-Digit PIN Input** with Visual Dots (● / β—‹)
**Ripple Effect** on all buttons (Touch Feedback)
**Gradient Buttons** with Rounded Corners
**Delete** (←) and **Clear** (Γ—) functionality
**PIN Validation** with Correct/Incorrect feedback
**Automatic Timezone** restore on app close
**Responsive Layout** (works on all screen sizes)

---

### Libraries Used:

- **RippleView** (by @Alexander Stolte) - For ripple effect animation
- **XUI** - For cross-platform views
- **B4XPages** - For modern page management

---

### How to Use:

1. **Clone/Download** the source code
2. **Add** the following files:
- `RippleView.bas` (download from [this thread](https://www.b4x.com/android/forum/threads/ripple-effect-animation.141501/))
- `digital.ttf` (optional, for digital clock font)
3. **Change** the default PIN in `B4XPage_Created`:
```b4a
Private CorrectPin As String = "123456" ' ← Change this!

Requirements:​

  • B4A version: 11.0+
  • Android API: 21+
  • Libraries: XUI, RippleView

Credits:​




 

Attachments

  • PIN CODE_Final.zip
    20.7 KB · Views: 10

Cableguy

Expert
Licensed User
Longtime User
Just to be clear, this works on App level, not OS, right?
Meaning, this can have different pin codes, each individual to an App?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…