To use this library verry simpe like this. First Add New Library Titanic
final TitanicTextView mytext = new TitanicTextView(MainActivity.this);
Add text to showing Titanic:
mytext.setText("Created By Gabriel");
add size with float:
mytext.setTextSize((float)100);
Add color Black like this:
mytext.setTextColor(0xFF000000);
add layout to titanic:
mytext.setLayoutParams(new LinearLayout.LayoutParams(android.widget.LinearLayout.LayoutParams.WRAP_CONTENT, android.widget.LinearLayout.LayoutParams.WRAP_CONTENT));
add showing titanic at linear1 like this:
linear1.addView(mytext);
if you want showing at position 1, but must sure on linear wass added another content. for this code set with 0 and titanic will show at pos 1, and if set 1 titanic will show at pos 2. like this:
linear1.addView(mytext, 0);
if you want add font add this:
mytext.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/atisfyegular.ttf"), 0);
add button to start animation titanic:
button1.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
new Titanic().start(mytext);
}
});
For Example starting only use:
new Titanic().start(mytext);
Download Library At:
Download Demo App At: