FabricView


Source link: https://github.com/antwankakki/FabricView

FabricView -

A new canvas drawing library for Android. The library was born as part of a project in SD Hacks ( www.sdhacks.io) on October 3rd. It is currently under construction and will be refactored and polished in the coming weeks! Stay tuned.

Why? From Doodling on the screen and unleashing the user's creativity to capturing his signature for authentication purposes... The limit is your imagination.

Sample Screen Recording

How to use? As easy as 1, 2, 3!

Please note this is an alpha build, not feature complete, and can be buggy. If you find any bugs, report them to us here!

  1. Add JitPack to your build.gradle at the end of repositories

allprojects {

  repositories {

jcenter()

maven {
 url "https://jitpack.io" 
}

...
  
}
 
}
  ``` 
  1. Add FabricView to your dependencies

    dependencies {
    
    compile fileTree(include: ['*.jar'], dir: 'libs')
    
    compile 'com.github.antwankakki:FabricView:latest'
    
    ...
     
    }
    
  2. Add the following to your layout xml file

     <com.agsw.FabricView.FabricView
    
    android:layout_width="wrap_content"
    
    android:layout_height="wrap_content"
    
    android:id="@+id/faricView"
    
    android:layout_centerHorizontal="true"
    
    android:layout_alignParentBottom="true" />
  3. You are done! You can now reference it in your classes and do all kinds of cool things with it. Check out the api to see what it can do at http://antwankakki.github.io/FabricView/javadoc/

0.1 Milestone Progress

  • Multiple Input Colors
  • Multiple standard background modes (Notebook style, Graph paper...)
  • Export canvas as image
  • Performance (Redraw only parts of the screen that need to be redrawn)
  • Background Support
  • Images support
  • Undo/Redo Support - ToDo
  • Drawing Text captured directly from keyboard. - ToDo
  • Allowing Resize when inserting images. - ToDo
  • onCanvasChanged Event - ToDo

Future plans

  • Layers and Groups
  • More complex objects
  • Transparency
  • Rotations, translations, scalings

Thanks to...

Resources

A library that implements the persistent search bar seen on apps such as Google Now, Google Maps and Google Play.

DesignOverlay is an android app which displays a design image with grid lines to facilitate the tedious layout process. The grid is especially useful to align to baseline grids as described in Android Design Guidelines.

Coordinator is a Java library that is used to coordinate various asynchronous actions. Usually we found cases that you need to check if other thread is completed to execute an action, coordinator solves this problem without using flags.

Prime is an Android image loading library.

Simple, pretty and powerful logger for Android.

Load custom fonts easily just via layout parameters or styles. Uses static Typeface objects, load once - memory efficient. No more textView.setTypeface() calls!

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes