Android Autoscroll imageview

前端 未结 3 1121
囚心锁ツ
囚心锁ツ 2021-02-06 15:30

In my activity I have just an ImageView. In it, the src is a picture that is a lot bigger than the screen. I want the picture to scroll slooooowly from left to right until it re

3条回答
  •  伪装坚强ぢ
    2021-02-06 15:48

    What you could do is add the ImageView inside a ScrollView. Like this

    
        
    
    

    As you want to scroll the Image automatically, you could create a AsyncTask and inside doInBackground() method, create a new Runnable or runOnUiThread() and send commands to the ScrollView using it's ID to scroll as you need it to.

提交回复
热议问题