我有一份案文投入清单,每个清单都有编号。 左边是“......”指“+”的右边。
因此,它希望:
[ - ] [ 1111 ] [ + ]
[ - ] [ 1112 ] [ + ]
[ - ] [ 1113 ] [ + ]
etc...
我希望每个[-]机构改变其周围的实地价值,将其削减到1个,每个[+]机构增加其所剩外地的价值。
Is there a way that I can write a generic listener that would, upon instantiation, take as a param the id of the text field to be edited? setOnClickListener only takes a View.OnClickListener as a param, and that can t be given any extra params to hang onto either. Do I have to extend View.OnClickListener with my own custom listener to do this? Or is there some obvious way to accomplish this task that I m overlooking?
TIA.