All Projects → blipinsk → IntDefs

blipinsk / IntDefs

Licence: Apache-2.0 License
Android constants wrapped in @IntDef annotations

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to IntDefs

illuminsight
💡👀 Read EPUB books with built-in insights from wikis, definitions, translations, and Google.
Stars: ✭ 55 (+223.53%)
Mutual labels:  annotations
spectree
API spec validator and OpenAPI document generator for Python web frameworks.
Stars: ✭ 190 (+1017.65%)
Mutual labels:  annotations
CrowdTruth-core
CrowdTruth framework for crowdsourcing ground truth for training & evaluation of AI systems
Stars: ✭ 45 (+164.71%)
Mutual labels:  annotations
efficient-annotation-cookbook
Official implementation of "Towards Good Practices for Efficiently Annotating Large-Scale Image Classification Datasets" (CVPR2021)
Stars: ✭ 54 (+217.65%)
Mutual labels:  annotations
AnnotationProcessorStarter
Project to set up basics of a Java annotation processor
Stars: ✭ 19 (+11.76%)
Mutual labels:  annotations
youtube-copy-annotations
💻 Copy YouTube annotations like a pro!
Stars: ✭ 13 (-23.53%)
Mutual labels:  annotations
rubocop-linter-action
Rubocop Linter Action: A GitHub Action to run Rubocop against your code!
Stars: ✭ 86 (+405.88%)
Mutual labels:  annotations
super-csv-annotation
'Super CSV' extention library for annotation
Stars: ✭ 29 (+70.59%)
Mutual labels:  annotations
MangoServer
A MongoDB implementation of the W3C Web Annotation Protocol
Stars: ✭ 16 (-5.88%)
Mutual labels:  annotations
tfvars-annotations
[not-WIP] Update values in terraform.tfvars using annotations
Stars: ✭ 20 (+17.65%)
Mutual labels:  annotations
Form-Labeller
Use this tool to label forms, bounding boxes, and assigning types to annotations
Stars: ✭ 17 (+0%)
Mutual labels:  annotations
AnnotationProcessing
✔️ㅤ[ARTICLE] Writing your own Annotation Processors in Android
Stars: ✭ 47 (+176.47%)
Mutual labels:  annotations
grpc-jwt-spring-boot-starter
Spring boot starter for gRPC framework with JWT authorization
Stars: ✭ 24 (+41.18%)
Mutual labels:  annotations
summerfish-swagger
Automatic Swagger docs for Go
Stars: ✭ 16 (-5.88%)
Mutual labels:  annotations
trails-proposal
Proposal for a method to create trails using the Web Annotation Data Model
Stars: ✭ 25 (+47.06%)
Mutual labels:  annotations
elucidate-server
A W3C and OA compliant Web Annotation server
Stars: ✭ 48 (+182.35%)
Mutual labels:  annotations
ColdStorage
Lightweight data loading and caching library for android
Stars: ✭ 39 (+129.41%)
Mutual labels:  annotations
AutoBindings
Set of annotations that aims to make your Android development experience easier along with lint checks.
Stars: ✭ 15 (-11.76%)
Mutual labels:  annotations
dnaPipeTE
dnaPipeTE (for de-novo assembly & annotation Pipeline for Transposable Elements), is a pipeline designed to find, annotate and quantify Transposable Elements in small samples of NGS datasets. It is very useful to quantify the proportion of TEs in newly sequenced genomes since it does not require genome assembly and works on small datasets (< 1X).
Stars: ✭ 28 (+64.71%)
Mutual labels:  annotations
better-serializer
General serializer for PHP. An alternative to JmsSerializer.
Stars: ✭ 27 (+58.82%)
Mutual labels:  annotations

IntDefs

Android constants wrapped in @IntDef annotations.

Not all of the constants... just the ones that would usually be used in switch statements.

Usage

Currently there are 3 annotations implemented in the library:

  1. @Visibility

    • View.VISIBLE
    • View.INVISIBLE
    • View.GONE
  2. @MotionEventAction

    • MotionEvent.ACTION_DOWN
    • MotionEvent.ACTION_UP
    • MotionEvent.ACTION_MOVE
    • MotionEvent.ACTION_CANCEL
    • MotionEvent.ACTION_OUTSIDE
    • MotionEvent.ACTION_POINTER_DOWN
    • MotionEvent.ACTION_POINTER_UP
    • MotionEvent.ACTION_HOVER_MOVE (from intdefs-v14)
    • MotionEvent.ACTION_SCROLL (from intdefs-v14)
    • MotionEvent.ACTION_HOVER_ENTER (from intdefs-v14)
    • MotionEvent.ACTION_HOVER_EXIT (from intdefs-v14)
    • MotionEvent.ACTION_BUTTON_PRESS (from intdefs-v23)
    • MotionEvent.ACTION_BUTTON_RELEASE (from intdefs-v23)
  3. @MotionEventAction_Simple

    • MotionEvent.ACTION_DOWN
    • MotionEvent.ACTION_UP
    • MotionEvent.ACTION_MOVE
    • MotionEvent.ACTION_CANCEL

Add the annotation to a variable or to the method (result of the method to be exact) to specify the possible values for it.

Including In Your Project

  1. If your minSdk is 23 or higher use this:
dependencies {
    compile 'com.bartoszlipinski.intdefs:intdefs-v23:1.0.0'
}
  1. Otherwise if your minSdk is 14 or higher use this:
dependencies {
    compile 'com.bartoszlipinski.intdefs:intdefs-v14:1.0.0'
}
  1. Otherwise if your minSdk is 9 or higher use this:
dependencies {
    compile 'com.bartoszlipinski.intdefs:intdefs-v9:1.0.0'
}

Contributions

If you think another set of constants should be included in the library, issues and pull requests are welcome.

Developed by

  • Bartosz Lipiński

License

Copyright 2016 Bartosz Lipiński

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].