Coder Social home page Coder Social logo

android-patternview's Introduction

android-patternview

Join the chat at https://gitter.im/geftimov/android-patternview Android Arsenal Maven Central

View for locking and unlocking.

svg svg svg svg svg

How to use
<com.eftimoff.patternview.PatternView
    xmlns:patternview="http://schemas.android.com/apk/res-auto"
    android:id="@+id/patternView"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    patternview:circleSize="50dp"
    patternview:pathColor="@color/primary_dark_material_light"
    patternview:circleColor="@color/highlighted_text_material_light"
    patternview:dotColor="@color/highlighted_text_material_light"
    patternview:gridRows="4"
    patternview:gridColumns="4"/>
Attributes
attr default mean
circleSize 150 The circle size if WRAP_CONTENT is used.
circleColor #000000 Color of the selected cell circle.
dotColor #000000 Color of the cell dot.
gridRows 3 Rows of the grid. Example 4 for 4xcolums.
gridColumns 3 Columns of the grid. Example 4 for rowsx4.
pathColor #000000 The color of the path that is following the pointer.
Limitations
  1. Padding for the view does not work.

TODO

  1. See the padding , and why it is not applied.
  2. Make wiki for all the settings.

Contributors

I want to update this library and make it better. So any help will be appreciated. Make and pull - request and we can discuss it. See CONTRIBUTORS.md .

Download
dependencies {
	compile 'com.eftimoff:android-patternview:1.0.6@aar'
}
Changelog

1.0.6

[Fix] Non Square Patterns gets squeezed.
[Feature] Add colours dynamically.

1.0.5

[Feature] Not only fixed size now. Can set different column and row size.

1.0.4

[Feature] Added dotColor to be able to change only the color of the dots.

1.0.3

[Fix] Fix a bug with crashing on orientation change.

1.0.2

[Feature] Support for API 9

Licence

Copyright 2015 Georgi Eftimov

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.

android-patternview's People

Contributors

dmitrikudrenko avatar geftimov avatar gitter-badger avatar hiperzone avatar junyuecao avatar mariotaku avatar

Watchers

 avatar  avatar

Forkers

adahra

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.