Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8353463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:16:01+00:00 2026-06-09T09:16:01+00:00

I am trying to create a screen as follows: Some very long text, saying

  • 0

I am trying to create a screen as follows:

               Some very long text, saying something

Now, what I want is for the splash screen to load with the image ONLY, then I want the text underneath it to fade in character by character:

Frame 1: S

Frame 2: So

Frame 3: Som
etc…

My layout looks like this (I am not showing the image yet):

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <LinearLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" 
    android:id="@+id/fader">    
    </LinearLayout>

 </RelativeLayout>

My Java looks like this:

public void onCreate(Bundle savedInstanceState)  {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.splash);  

    View faderLayout = findViewById(R.id.fader);

    TextView[] faderTextViews = getFaderTextViews();  
    for(int i=0; i<faderTextViews.length; i++)
    {
        ((LinearLayout) faderLayout).addView(faderTextViews[i]);
        faderLayout.invalidate();

    }

}


private TextView[] getFaderTextViews()
{

     final Animation in = new AlphaAnimation(0.0f, 1.0f);
        in.setDuration(3000);

        final Animation out = new AlphaAnimation(1.0f, 0.0f);
        out.setDuration(3000);
     char[] veryLongString = "This is a very long string".toCharArray();
     TextView[] faderTextViews = new TextView[veryLongString.length];
     for(int i = 0; i<faderTextViews.length; i++)
     {
         TextView temp = new TextView(this);
         temp.setText(veryLongString, i, 1);
         temp.setLayoutParams(new LayoutParams(
                    LayoutParams.WRAP_CONTENT,
                    LayoutParams.WRAP_CONTENT));
         temp.startAnimation(in);
         faderTextViews[i] = temp;

     }
     return faderTextViews;

}

What ends up happening is that the entire string is faded in at once.

Is there any way to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T09:16:03+00:00Added an answer on June 9, 2026 at 9:16 am
    AnimationDrawable frameAnimation;
    frameAnimation = (AnimationDrawable) addselection.getBackground();
    
    @Override public void onWindowFocusChanged(boolean hasFocus) {
        frameAnimation.start();
        super.onWindowFocusChanged(hasFocus);
    }
    

    add drawable with this type of xml

    <?xml version="1.0" encoding="utf-8"?>
    <animation-list xmlns:android="http://schemas.android.com/apk/res/android"
        android:oneshot="false">
        <item android:drawable="@drawable/add_selection0001" android:duration="50" />
        <item android:drawable="@drawable/add_selection0002" android:duration="50" />
        <item android:drawable="@drawable/add_selection0003" android:duration="50" />
        <item android:drawable="@drawable/add_selection0004" android:duration="50" />
        <item android:drawable="@drawable/add_selection0005" android:duration="50" />
        <item android:drawable="@drawable/add_selection0006" android:duration="50" />
    </animation-list>
    

    Set different images for your sequence animation.set this drawable as your background in imageview.

    There is a relatively simple example on the official docs website here:
    Animation Resources

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a splash screen using LWUIT. I want a form to
I'm trying to create a splash screen for MonoTouch, that fades from the Default.png
I'm trying to use this to create a splash screen, but I only get
I am trying to create a screen with some dynamic controls, well radio buttons
I'm trying to create a splash screen that shows assemblies (all referenced library) loading
I am trying to create a screen cast for my new web app. I
I am trying to create a login screen for an iphone application using sqlite3
I'm trying to create a Help/About screen for my application, but I've discovered that,
I'm trying to create a shortcut on the home screen that, when pressed, will
I'm currently trying to create a screen similar to this: Using this tool to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.