Skip to content

About RoboType,How does It works,How to implement

Mohamed Rashad edited this page Jul 25, 2015 · 3 revisions

About RoboType

The world's first Library/Module to implement interactive text inside your android app. It emulates text typing according to your own algorithm. This library made by Pi Developers

How does it Works

You should assign method where a string parameter int className is present. First of all in the method first split string into single char then do some boolean task see here : https://github.com/Pi-Developers/RoboType/blob/master/Source/java/com/pidevelopers/robotype/RoboType.java then do reflection to access the other class. after that invoke the method that set new character each certain time. then execute handler to according to the length of the string.

How to Implement

1.Clone the project 2.Copy the RoboType.jar and import in your project 3.Then Add this method to your class

public static void Robo(String x){

YourTextView.append(x);

};

Note: Don't set setText in your class

4.Then import RoboType

5.Then call method

RoboType.update(message, fullClassName, speed);

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

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)

6.Compile and run

Clone this wiki locally