android - Get View from the OnTouch Method from superClass when define Views Programmatically -


i have superclass "central" button , ontouchlistener(view v, motionevent event) method. "lay1" activity subclass of "central" , use addview() make appear button on layout. addview() works fine obtain 0 value when try v.getx() or v methods. know activity can't "see" "v" because implemented , when call v, not exists. need @override method give-me "v" don't know place that. thank helping


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

php - Mongodb connectivity error -