Search in sources :

Example 1 with SettingBean

use of com.lock.setting.model.SettingBean 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);
}
Also used : SettingPresenterImpl(com.lock.setting.presenter.SettingPresenterImpl) ArrayList(java.util.ArrayList) SettingBean(com.lock.setting.model.SettingBean) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 SettingBean (com.lock.setting.model.SettingBean)1 SettingPresenterImpl (com.lock.setting.presenter.SettingPresenterImpl)1 ArrayList (java.util.ArrayList)1