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:​




1785508713000.png
 

Attachments

  • PIN CODE_Final.zip
    20.7 KB · Views: 9

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?
 
Top