vendredi 31 juillet 2015

[Library] [Android] RoboType -- The android text typing emulator



I saw many websites having the feature of text to be typed alone.
I liked this, and searched and found nothing similar for android, so I made a library for this.


This one is called RoboType

About RoboType :
  • The world's first Library/Module to implement interactive text inside your android app.

  • It stimulates text typing.

  • Easy to Implement.

  • Compitable with all android versions.

  • Light-Weight.

  • Open-Source.



How to implement :
  • Download RoboType.jar

  • Implement the RoboType.jar or import the lib project

  • Inside your activity add this method :




    Code:


            public static void Robo(String x){

            YourTextView.append(x);

            };



  • In your onCreate or wherever you want add :



    Code:


        RoboType.update(message, fullClassName, speed);



Note : We recommend to use 100 speed Note : In fullClassName you need to write like this com.example.MainActivity

Don't forget to import the class "RoboType".



Update function explained :



Code:


    update(message, className, speed);

This is the function used to apply the module. use it in anywhere you like (button listener, onCreate...etc).

Parameters :
  1. message : string to be displayed.

  2. speed : the speed of displaying text in milliseconds.

  3. classname : the activity where you will display this text (i.e. com.package.class)


Algorithm :
  • it get the text from user.

  • split the string to single characters.

  • using reflection to access the other class.

  • invoke the method that set new character each certain time.

  • use a handler to control the process.


Changelog :

v1.0 :
  1. added jar.

  2. added project source.

  3. use reflection to invoke.

  4. initial release.


Notes :
  • This is still in early stage of development.

  • A demo Application for this library is available on Playstore

  • A Youtube video showing it on action

  • The Source code on Github




https://www.youtube.com/watch?v=MqHr...ature=youtu.be">https://www.youtube.com/watch?v=MqHr...ature=youtu.be" type="application/x-shockwave-flash" width="425" height="350">



Aucun commentaire:

Enregistrer un commentaire