阅读背景:

使用数组中的位置设置toast的文本,该数组是循环的迭代

来源:互联网 

This code programatically generates a layout which consists of views and TextViews in a way that is defined in an array. However, I am trying to make each TextView clickable which displays a toast of a bigger explanation of that TextView . Since the toast needs to be specific to the particular TextView , I am trying to set the TextView using another array of explanations at position i. However, when I try to do this I get the error "Cannot refer to a non final variable inside an inner class defined in a different method."This code programatically generates a layout wh




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: