hello,

the following is code i am using for animation.


    public void provideAnimation(int scrolledDistance)
    {
        TranslateAnimation _tAnim = new TranslateAnimation(0, 0,
scrolledDistance, 0);
        _tAnim.setInterpolator(new DecelerateInterpolator());
        _tAnim.setDuration(1000);
        startAnimation(_tAnim);
        invalidate();
        //return true;
    }


where scrolledDistance is distnace which user scrolls.

On Feb 7, 3:24 pm, Honest <[email protected]> wrote:
> hi,
>
> Thanks for your reply. actually as i told i wanted rubber or bounce
> back effect. So i derived AdapterView class but the problem is there
> is no scroll bar. and  another problem  is In my xml layout file there
> is some ImageButton and some other control at up and botom part. and
> in between there is List.(Class Which Extends Adapter View). But when
> i scroll it at upper side and by animation when it bounce back it draw
> element of that list on that image button and it overlaps that upper
> part(which has other control like ImagetButton and EditText) for some
> time till animation runs.  Let me know if you can not understand any
> thing.
>
> On Feb 7, 1:50 pm, TreKing <[email protected]> wrote:
>
> > On Sun, Feb 6, 2011 at 8:23 PM, Honest <[email protected]> wrote:
> > > I am using AdapterView to have Cutom List. But my Xml layout not
> > > only contains that List. It also have some other elements like
> > > TextBox, labels, ImageButton at the top and bottom.   so when i scroll it
> > > up and animation starts it also draw elements on that Top
> > > Part(Which contains ImageButton and other stuff). so can some one tell me
> > > how can i remove it ? another issue is it do not have scrool bar. can some
> > > one tell me how can i add scroll bar in it ?
>
> > I don't think your problem is very clear. Try explaining in a bit more
> > detail and, if possible, include screenshots that illustrate the problem.
> > That really helps.
>
> > -------------------------------------------------------------------------------------------------
> > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> > transit tracking app for Android-powered devices

-- 
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