eclipse - Android - Call requires API level 11 (current min is 8): android.widget.ImageView#setAlpha -


its showing me error on setalpha

private void updatenextbutton(){     if(currentposition == totalitem - 1){         nextbtn.setalpha(0.5f);         nextbtn.setclickable(false);     }     else{         nextbtn.setalpha(1f);         nextbtn.setclickable(true);     } } 

and log giving following error

--

java.lang.nosuchmethoderror: android.widget.imageview.setalpha

please me devices giving error.

what means defined app run on android versions down version 8. feature want use requires api 11. can set min sdk 11 fix or 3rd party library run feature on api 8.

http://developer.android.com/guide/topics/manifest/uses-sdk-element.html


Popular posts from this blog