Giter Club home page Giter Club logo

blinktextview's Introduction

BlinkTextView

BlinkTextView logo         NEW -- Version 2.0!

Much update

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.)

Demo GIF -- Everybody loves GIFs, right?

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.

blinktextview's People

Contributors

rock3r avatar frapontillo avatar

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.