i am very sorry for the late reply.

here is a sample, (if u guys have not already figured it out). hope it
helps:


public class MyTextAnimation extends Activity {

    Animation mAnimation;
    TextView mTextView;
    LinearLayout mLayout;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mLayout = new LinearLayout(this);
        mLayout.setGravity(Gravity.CENTER);
        mTextView = new TextView(this);
        mTextView.setText("Saurav Mukherjee");
        mTextView.setGravity(Gravity.CENTER);
        mAnimation = new TranslateAnimation(100f, -100f, 0.0f, 0.0f);
        mAnimation.setDuration(2000);
        mTextView.setAnimation(mAnimation);
        mLayout.addView(mTextView);
        setContentView(mLayout);
    }

}




Regards,
Saurav Mukherjee.



On Tue, Nov 3, 2009 at 8:36 PM, Gulfam <[email protected]> wrote:

> I want to make same component as mentioned by
> npak243 any one can help us regarding this. I am trying to use
> Animation Class but i dont know how to use it.
>
> I have also used marquee with text view its work fine but on getting
> focus but i need to scroll text with in text view if it is ocused or
> not means in both conditions.
>
> Gulfam Hassan
>
> On Nov 3, 6:45 pm, sham shamcs <[email protected]> wrote:
> > use animation class in Android.
> >
> > On Tue, Nov 3, 2009 at 2:49 PM, [email protected] <[email protected]>
> wrote:
> > > Hi all,
> >
> > > Now i want to write an application to make a certain text to run
> > > slowly from right side screen to left side screen and rotate to
> > > repeat.
> > > How can i do that? Please help me !
> > > Thanks all,
> >
> > > NPAK
> >
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to
> [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<android-developers%[email protected]>
> <android-developers%[email protected]<android-developers%[email protected]>
> >
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to