List of usage examples for org.apache.commons.collections4.map ListOrderedMap put
@Override public V put(final K key, final V value)
From source file:com.dreamfactory.kurtishu.pretty.view.delegate.AboutDelegate.java
@Override protected void initViews(Context context, Intent mIntent) { super.initViews(context, mIntent); Toolbar toolbar = get(R.id.toolbar); toolbar.setTitle(R.string.app_name); toolbar.setTitleTextColor(Color.WHITE); toolbar.setNavigationIcon(R.mipmap.ic_arrow_back); toolbar.setNavigationOnClickListener(this); TextView textViewVersion = get(R.id.version); textViewVersion.setText(context.getString(R.string.version, BuildConfig.VERSION_NAME, BuildConfig.FLAVOR)); RecyclerView mRecyclerView = get(R.id.dp_libraries); mRecyclerView.setLayoutManager(new LinearLayoutManager(context)); ListOrderedMap<String, String> dataMap = new ListOrderedMap<String, String>(); dataMap.put("GitHub?", "https://github.com/KurtisHu/Pretty"); dataMap.put(" ", " ?"); dataMap.put("square / okhttp", "https://square.github.io/okhttp/"); dataMap.put("google / gson", "https://github.com/google/gson"); dataMap.put("facebook / fresco", "https://github.com/facebook/fresco"); dataMap.put("orhanobut / logger", "https://github.com/orhanobut/logger"); dataMap.put("greenrobot / EventBus", "https://github.com/greenrobot/EventBus"); dataMap.put("lsjwzh / RecyclerViewPager", "https://github.com/lsjwzh/RecyclerViewPager"); dataMap.put("Syehunter / RecyclerViewManager", "https://github.com/Syehunter/RecyclerViewManager"); dataMap.put("Apache / commons-collections", "http://commons.apache.org/proper/commons-collections/"); dataMap.put("Realm", "https://realm.io"); mRecyclerView.setAdapter(new LibraryAdapter(context, dataMap)); }