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

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -