How to implement a text writer animation in Android Studio ।। RSM Developer

How to implement a text writer animation in Android Studio
How to implement a text writer animation in Android Studio

Presenting brand new Article:
In this video you will learn how to make a text writer animation Ui Design App in Android Studio. Just follow the steps in the video. More article about Android Application Development will uploaded so get in touch with the channel. So you are no more far. You can be developer. 

Step 1Creating a new project

  • Open a new project.
  • We will be working on Empty Activity with language as Java. Leave all other options unchanged.
  • You can change the name of the project at your convenience.
  • There will be two default files named activity_main.xml and MainActivity.java.

Step 2: Navigate to Build scripts > build.gradle(module) file and add the following dependency to it and Syne Now

//Text Anim
implementation 'com.github.sarnavakonar:TextWriter:v1.0'

And
targetSdk 33
compileSdk 33
Or
implementation 'androidx.appcompat:appcompat:1.5.1'

Step 3: Navigate to Build scripts > settings.gradle(module) file and add the following dependency to it and Syne Now

maven {url 'https://jitpack.io'}

Step 4: Open res -> layout ->activity_main.xml (or) main.xml and add following code:

In this step we open an XML file and add the code :-

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
tools:context=".TextW">

<com.sarnava.textwriter.TextWriter
android:id="@+id/textWriter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
/>


</LinearLayout>

Step 5: Open Java -> package – > MainActivity.Java and add following code:

In this step we open an Java file and add the code :-

package com.classtest.nagadapp;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;

import com.sarnava.textwriter.TextWriter;
/**
* Created by RSM Developer on 23-04-2023.
* Follow Facebook : https://www.facebook.com/RsmDeveloper
* Subscribe YouTube : https://www.youtube.com/@RsmDeveloper
* Visit Website : https://rsmdeveloper.blogspot.com/
* Developed Your Creativity With RSM Developer
**/

public class TextW extends AppCompatActivity {

TextWriter textWriter;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.text_w);

textWriter = findViewById(R.id.textWriter);

textWriter
.setWidth(12)
.setDelay(100)
.setColor(Color.RED)
.setConfig(TextWriter.Configuration.INTERMEDIATE)
.setSizeFactor(20f)
.setLetterSpacing(15f)
.setText("RSM DEVELOPER")
.setListener(new TextWriter.Listener() {
@Override
public void WritingFinished() {

//do stuff after animation is finished
}
})
.startAnimation();

}
}

Output:

Now run the App and you will see main topics and sub-topics listed.....

Watch this video 

Post a Comment

Previous Post Next Post

যোগাযোগ ফর্ম