1. Download our Official Android App: Forums for Android!

Apps How to create a scroll animation in Android studio?

Discussion in 'Android Development' started by Arijit Banerjee, Jun 12, 2016.

  1. Arijit Banerjee

    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Mar 24, 2016

    Mar 24, 2016
    2
    0
    5
    Male
    Hi,
    I'm new to Android development. I'm working on an app that requires some form of animation. Please have a look at this

    SCREENANIM.png

    I want to create an animation where a scroll rolls down as soon as this activity starts & displays the text above in it & rolls up when the connect button is clicked.

    I have no clue how or where to begin. I have looked at tutorials for Page curl, but that didn't help much. Any links to relevant tutorials or posts will be of much help.

    Thank you for your time!
     

    Advertisement

    #1 Arijit Banerjee, Jun 12, 2016
    Last edited: Jun 12, 2016
  2. HeavensSentSword

    HeavensSentSword Well-Known Member
    Rank:
    None
    Points:
    93
    Posts:
    134
    Joined:
    Jan 19, 2016

    Jan 19, 2016
    134
    36
    93
    Male
    You could try something like this
    Code (Java):
    1. ScrollView sv = (ScrollView)findViewById(R.id.scrl);
    2. sv.scrollTo(0, sv.getBottom());
    3. or
    4.  
    5. sv.scrollTo(5, 10);
     

Share This Page

Loading...