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 :
How to implement :
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 :
This is the function used to apply the module. use it in anywhere you like (button listener, onCreate...etc).
Parameters :
Algorithm :
Changelog :
v1.0 :
Notes :
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);Parameters :
- message : string to be displayed.
- speed : the speed of displaying text in milliseconds.
- 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 :
- added jar.
- added project source.
- use reflection to invoke.
- 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
Aucun commentaire:
Enregistrer un commentaire