Access to variabe in View class from main activity
<p>I have 2 classes, Main as main activity and DrawView (extends View) as a class where I have part of menu. I use class DrawView ONLY in main.xml file, what shows this menu part (kind of slider). In this DrawView is integer variable like 'currentSelection'.
How I can have access to this variable? I need later send this value to the second activity.</p>
