use of com.lock.setting.presenter.SettingPresenterImpl in project AndroidDevelop by 7449.
the class SettingFragment method initData.
@Override
protected void initData() {
mPresenter = new SettingPresenterImpl(this);
List<SettingBean> list = new ArrayList<>();
list.add(new SettingBean(getString(R.string.setting_clear_setting)));
list.add(new SettingBean(getString(R.string.setting_delete_app_name)));
list.add(new SettingBean(getString(R.string.setting_alter_pass_word)));
list.add(new SettingBean(getString(R.string.setting_exit)));
mRecyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
SettingAdapter adapter = new SettingAdapter(list);
adapter.setOnItemClickListener(this);
mRecyclerView.setAdapter(adapter);
}
Aggregations