Crossfading 2 views using a button in Android

前端 未结 1 1393
渐次进展
渐次进展 2021-01-28 13:34

I am having some trouble using the android crossfading views. I\'m trying to crossfade between 2 pictures back and forth. I can load the image, but once I hit the crossfade butt

相关标签:
1条回答
  • 2021-01-28 14:09

    When you declare the onClick attribute in xml, the corresponding method in the Java code needs to have a certain signature. Change:

    private void crossfade()
    

    to:

    public void crossfade(View v)
    
    0 讨论(0)
提交回复
热议问题