use of com.hannesdorfmann.mosby3.sample.mvp.CountriesAdapter in project mosby by sockeqwe.
the class CountriesActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.countries_list);
ButterKnife.bind(this);
// Setup contentView == SwipeRefreshView
contentView.setOnRefreshListener(this);
// Setup recycler view
adapter = new CountriesAdapter(this);
recyclerView.setLayoutManager(new LinearLayoutManager(this));
recyclerView.setAdapter(adapter);
loadData(false);
}
use of com.hannesdorfmann.mosby3.sample.mvp.CountriesAdapter in project mosby by sockeqwe.
the class CountriesFragment method onViewCreated.
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstance) {
super.onViewCreated(view, savedInstance);
unbinder = ButterKnife.bind(this, view);
// Setup contentView == SwipeRefreshView
contentView.setOnRefreshListener(this);
// Setup recycler view
adapter = new CountriesAdapter(getActivity());
recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
recyclerView.setAdapter(adapter);
loadData(false);
}
use of com.hannesdorfmann.mosby3.sample.mvp.CountriesAdapter in project mosby by sockeqwe.
the class NotRetainingCountriesFragment method onViewCreated.
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstance) {
super.onViewCreated(view, savedInstance);
unbinder = ButterKnife.bind(this, view);
// Setup contentView == SwipeRefreshView
contentView.setOnRefreshListener(this);
// Setup recycler view
adapter = new CountriesAdapter(getActivity());
recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
recyclerView.setAdapter(adapter);
}
use of com.hannesdorfmann.mosby3.sample.mvp.CountriesAdapter in project mosby by sockeqwe.
the class CountriesLayout method onFinishInflate.
@Override
protected void onFinishInflate() {
super.onFinishInflate();
ButterKnife.bind(this, this);
contentView.setOnRefreshListener(this);
adapter = new CountriesAdapter(getContext());
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
recyclerView.setAdapter(adapter);
}
use of com.hannesdorfmann.mosby3.sample.mvp.CountriesAdapter in project mosby by sockeqwe.
the class NotRetainingCountriesActivity method onCreate.
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.countries_list);
ButterKnife.bind(this);
// Setup contentView == SwipeRefreshView
contentView.setOnRefreshListener(this);
// Setup recycler view
adapter = new CountriesAdapter(this);
recyclerView.setLayoutManager(new LinearLayoutManager(this));
recyclerView.setAdapter(adapter);
}
Aggregations