在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):omadahealth/LolliPin开源软件地址(OpenSource Url):https://github.com/omadahealth/LolliPin开源编程语言(OpenSource Language):Java 100.0%开源软件介绍(OpenSource Introduction):LolliPinA Lollipop material design styled android pincode library (API 14+) To include in your project, add this to your build.gradle file:
Starting from version 2.1.0 we will have a different package name:
======== ByDevelopers: Olivier Goutay and Stoyan Dimitrov and Dae Park Contributors: Art Beatte IV, Alex Morgan Designers: Yassine Bentaieb ======== SecurityPassword protectionThe password itself is not saved, only its hash using the SHA-1 algorithm. This hash is then saved on the SharedPreferences, allowing to verify that the user entered the right PinCode, without giving the possibility to retrieve it. Introducing FingerprintOnce the user has enabled the password, he can also use his fingerprint scanner (using Google Api, not Samsung) to unlock his device. ======== UsageIf you want an example on how to use it, you can find an example app in this repo. ======== Preparing dependenciesWe are using a custom version of RippleView that contains a RippleAnimationListener. In order to be able to fetch this dependency, you need to add these lines into your main build.gradle file:
======== Overriding the AppLockActivityIn order to use the "Forgot" system, we let you extend the AppLockActivity class to provide your own way of handling the user behaviour in this case (logout, delete datas etc...)
======== InitAdvised to be done by extending the Application, but can be done elsewhere. The method below provides a way to enable or disable the PinCode system: ======== Enabling
Once enabled, you must extend "PinActivity" for every Activity you wish to protect. ======== Disabling
======== Set up the PinCodeWhenever you want the user to set up his pin code, you need to request:
======== Unlock systemAs soon as you enable the PinCode system, the Unlock screen will appear by itself when the user resume the app after a defined timeout. Please refer to the next section to know how to customize these values. ======== CustomizationSome features are customizable: The unlock timeout:
The pin length required:
The logo displayed at the top of the page:
The ignored activities:For instance you got a login activity that you want to avoid getting the lock screen, you can ignore this activity by doing:
The AppLockActivity Layout:By providing a custom layout to getContentView() you can alter how your AppLockActivity looks. However, you must include 4 required elements:
The Pin Dots:By supplying alternate drawable resources for app:lp_empty_pin_dot and app:lp_full_pin_dot you can custimize how it looks.
======== Credits
======== License
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论