Closed pishguy closed 7 years ago
You can ask for the instance of the TextView
from the ActivityChannelContentView
but why do you want something like this?
public interface ActivityChannelContentView extends MvpView {
TextView getScheduleDateTimeNotify()
}
public class ActivityChannelContent extends MvpActivity<ActivityChannelContentView, ActivityChannelContentPresenter> {
...
@Override
public TextView getScheduleDateTimeNotify() {
return this.scheduleDateTimeNotify;
}
Why don't you add a function in ActivityChannelContentView
like setTextToDateTimeNotify(..)
?
@charbgr you have right. in my presenter i have more process and i must to access to some widget in the same time
:) You are welcome! Although, I think those kind of questions should be on stackoverflow.
Thanks @charbgr
Hi there, I would like to access to view widgets such as
TextView
orEditText
from presenter, how can i do that,in my activity main i want to change
scheduleDateTimeNotify
text from presenterPresenter:
ActivityChannelContentPresenterImpl:
ActivityChannelContentViewModel:
ActivityChannelContentView interface: