# Android-Lock9View
**Repository Path**: alexl/Android-Lock9View
## Basic Information
- **Project Name**: Android-Lock9View
- **Description**: 一个Android平台的九宫格锁屏控件
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2016-04-15
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Android Lock9View #
[](https://bintray.com/takwolf/maven/Android-Lock9View/_latestVersion) [](https://android-arsenal.com/api?level=3) [](http://android-arsenal.com/details/1/1704)
An Android grid lock screen view with a callback interface.
## ScreenShot ##

## Demo ##
[](https://play.google.com/store/apps/details?id=com.takwolf.android.lock9)
## Usage ##
### Gradle ###
compile 'com.takwolf.android:lock9view:0.0.11'
### Layout example 1 ###

### Layout example 2 ###

**PS :**
**If use *"lock9_nodeSize"* , it will ignore *"lock9_padding"* and *"lock9_spacing"*.**
**The nodes will be layout on the center of 9 average areas.**
### Touch area ###
If you want to draw a small node with a bigger touch area, please user :
app:lock9_nodeAreaExpand="24dp" // default is 0
touchArea = lock9_nodeSize + lock9_nodeAreaExpand * 2
### Animation ###
app:lock9_nodeOnAnim="@anim/node_on_2"
### AutoLink ###

app:lock9_autoLink="true" // default is false
### Vibrate ###
app:lock9_enableVibrate="true" // default is false
app:lock9_vibrateTime="20" // default is 20 milliseconds
Also need :
### Error status ###
// TODO
### Activity ###
Lock9View lock9View = (Lock9View) findViewById(R.id.lock_9_view);
lock9View.setCallBack(new CallBack() {
@Override
public void onFinish(String password) {
Toast.makeText(MainActivity.this, password, Toast.LENGTH_SHORT).show();
}
});
## Author ##
TakWolf
[takwolf@foxmail.com](mailto:takwolf@foxmail.com)
[http://takwolf.com](http://takwolf.com)
## License ##
Copyright 2015-2016 TakWolf
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.