How to access Activity UI from my class?

I have an activity which creates an object instance of my class:

file MyActivity.java:
public class MyActivity extends Activity {
    TextView myView = (TextView)findViewById(R.id.myView);
    ...
    Points myPoints new Points();
    ...
}
--------------------------------------------------------------

file Points.java:
private class Points {
    ...
    HOW TO USE myView HERE ???
    ...
}
--------------------------------------------------------------

How do I use the UI objects in my class (which does not extend an Деятельность)? Должен ли я передать некоторый контекст моему классу Points? Как мне это сделать?

14
задан Brian Tompsett - 汤莱恩 12 June 2015 в 15:00
поделиться