BlinkTextView


Source link: https://github.com/frakbot/BlinkTextView

BlinkTextView

        

A TextView that blinks, just like the good old HTML <blink> tag.

Because, why not? Also, this is a birthday gift. Happy Birthday, Daniele! (note: it's not Daniele's birthday anymore.)

Usage

Wait, what? Seriously?

LOL ok. Clone the repo, and reference the thing:

dependencies {

  compile project(':lib') 
}

I'd suggest to copy-paste the lib folder to your project root and maybe rename it to something like annoyingthingy. That's way more representative of what the lib does.

Other awesome blinking stuff

With Version 2.0 of this awesome thing you can even blink MOAR stuff! How, you ask?

  1. Use a <blink> element as root in your layout XML. It has to be the layout root or it won't work!

    <blink
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content">
    
    <!-- Put your soon-to-be-blinking stuff in here --> </blink>
  2. Treat it exactly as if it were a FrameLayout (it actually is)

  3. ???

  4. Profit!

The lovely BlinkLayout is here to serve! Your layout will blink at lovely 500 ms intervals. I know it's not the best blinking interval ever, and it's actually not even the same frequency* that BlinkTextView blinks at. (*to all the grammar nazis out there: frequency is the reciprocal of the period, we know. We ran out of synonims, and it's pretty clear what we're talking about anyway)

Our amazing tech allows you to use the BlinkLayout even without having to have the BlinkTextView library as a dependency. Yeah, you read that right! This works out of the box on all Android devices and without the need for any additional dependency!

Unfortunately there are some technical limitations. OCD Mode is sadly not available on BlinkLayout. But we think that having _the whole layout blinking is annoying enough anyway, so it shouldn't be a big issue.

By the way, yes, the BlinkLayout is an easter egg (we guess) in the AOSP code...

What's super cool* about it

We have a magnificent OCD mode. It will randomly change the blink period so that it's even more effective. Make each of your blinks completely unique, your users will want to "thank" you! Guaranteed.

Also, you can't change the default blinking period. There's sound science behind it. Also, writing getters and setters is boooring. Yes, it's boring even when the IDE can generate them automatically for you.

Oh, about that *, read: annoying.

Demo

There is no demo. No, seriously. Build it yourself. Hell, it's a blinking thing!

License

This library is...

No, can't keep a straight face saying it, sorry. Let me try again.

This library is released under a very liberal Apache License 2.0. Basically, do whatever you want with it, but don't blame us if your users/clients/loved ones/imaginary friends will want to kill you for using it. Also, be nice and put our name somewhere (so that you can blame us for it!).

Usually people buries the OSS credits somewhere in their settings screen, at the bottom, under a sub item, and then you have to walk 120 steps to the East, turn around three times while saying "Cicciput!", jump, grab a portal gun, open a portal under your feet and another on that remote wall up there, touch your nose and the credits will appear behind you.

That's fine with us. But I digress.

Credits

This library uses the super cool Google Annotations Gallery, which is licensed under the Apache License 2.0.

Also, thanks to the always great Cyril Mottier for reminding us the existence of the BlinkLayout.

Resources

The library allows you to check if a specific application is installed or not by its package name. Also you have a helper which provides the packagenames of the most popular applications.

Periodically tracking user's location in the background.

DataFragment is a tiny tiny library that helps to prevent a little boilerplate code for retained data fragments in Android. This is really useful for holding data and long-running tasks over activity lifecycle, namely orientation changes.

Multiselect library is a powerful library to select multiple images and videos efficiently.

Common RecyclerView decorations and helpers for the Android platform.

Demo for the EventBus library of GreenRobot.

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