com.jude.easyrecyclerview.EasyRecyclerView Java Examples
The following examples show how to use
com.jude.easyrecyclerview.EasyRecyclerView.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MainActivity.java From Msgs with MIT License | 6 votes |
private void init() { personList = new ArrayList<>(); mAdapter = new PersonAdapter(); btn_send = (Button) this.findViewById(R.id.btn_send); tips = (TextView) this.findViewById(R.id.tips); btn_send_more = (Button) this.findViewById(R.id.btn_send_more); btn_improt = (Button) this.findViewById(R.id.btn_improt); phoneEt = (EditText) this.findViewById(R.id.phoneNumberEt); contextEt = (EditText) this.findViewById(R.id.contextEt); rg_all = (RadioGroup) this.findViewById(R.id.rg_all); rv_list = (EasyRecyclerView) this.findViewById(R.id.rv_list); progressDialog = new ProgressDialog(this); btn_send.setOnClickListener(this); btn_improt.setOnClickListener(this); btn_send_more.setOnClickListener(this); LinearLayoutManager mLayoutManager = new LinearLayoutManager(this); rv_list.setLayoutManager(mLayoutManager); rv_list.setItemAnimator(new DefaultItemAnimator()); rv_list.setAdapter(mAdapter); rg_all.setOnCheckedChangeListener(this); }
Example #2
Source File: GirlsView.java From AndroidModulePattern with Apache License 2.0 | 5 votes |
private void initView() { inflate(getContext(), R.layout.view_girls_content, this); mNetworkErrorLayout = (ViewStub) findViewById(R.id.network_error_layout); mGirlsRecyclerView = (EasyRecyclerView) findViewById(R.id.girls_recycler_view); StaggeredGridLayoutManager staggeredGridLayoutManager = new StaggeredGridLayoutManager(2, StaggeredGridLayoutManager.VERTICAL); mGirlsRecyclerView.setLayoutManager(staggeredGridLayoutManager); mAdapter = new GirlsAdapter(getContext()); mGirlsRecyclerView.setAdapterWithProgress(mAdapter); mGirlsRecyclerView.setRefreshingColor( ContextCompat.getColor(getContext(), R.color.colorPrimary), ContextCompat.getColor(getContext(), android.R.color.holo_blue_light), ContextCompat.getColor(getContext(), android.R.color.holo_green_light) ); mAdapter.setMore(R.layout.layout_load_more, this); mAdapter.setNoMore(R.layout.layout_load_no_more); mAdapter.setError(R.layout.layout_load_error); mAdapter.setOnMyItemClickListener(new GirlsAdapter.OnMyItemClickListener() { @Override public void onItemClick(int position, BaseViewHolder holder) { Intent intent = new Intent(Utils.getActivity(GirlsView.this), GirlActivity.class); intent.putParcelableArrayListExtra(Constants.INTENT_GIRLS, mData); intent.putExtra(Constants.INTENT_INDEX, position); ActivityOptionsCompat options = ActivityOptionsCompat.makeScaleUpAnimation(holder.itemView, holder.itemView.getWidth() / 2, holder.itemView.getHeight() / 2, 0, 0); Utils.getActivity(GirlsView.this).startActivity(intent, options.toBundle()); } }); mGirlsRecyclerView.setRefreshListener(this); mData = new ArrayList<>(); mActive = true; }
Example #3
Source File: DownLaodActivity.java From RxjavaRetrofitDemo-string-master with MIT License | 5 votes |
private void initWidget() { EasyRecyclerView recyclerView = (EasyRecyclerView) findViewById(R.id.rv); DownAdapter adapter = new DownAdapter(this); recyclerView.setLayoutManager(new LinearLayoutManager(this)); recyclerView.setAdapter(adapter); adapter.addAll(listData); }
Example #4
Source File: DownLaodActivity.java From RxjavaRetrofitDemo-master with MIT License | 5 votes |
private void initWidget() { EasyRecyclerView recyclerView = (EasyRecyclerView) findViewById(R.id.rv); DownAdapter adapter = new DownAdapter(this); recyclerView.setLayoutManager(new LinearLayoutManager(this)); recyclerView.setAdapter(adapter); adapter.addAll(listData); }
Example #5
Source File: DownLaodActivity.java From Rx-Retrofit with MIT License | 5 votes |
private void initWidget(){ EasyRecyclerView recyclerView=(EasyRecyclerView)findViewById(R.id.rv); DownAdapter adapter=new DownAdapter(this); recyclerView.setLayoutManager(new LinearLayoutManager(this)); recyclerView.setAdapter(adapter); adapter.addAll(listData); }
Example #6
Source File: DownLaodActivity.java From RxRetrofit-mvp with MIT License | 5 votes |
private void initWidget(){ EasyRecyclerView recyclerView=(EasyRecyclerView)findViewById(R.id.rv); DownAdapter adapter=new DownAdapter(this); recyclerView.setLayoutManager(new LinearLayoutManager(this)); recyclerView.setAdapter(adapter); adapter.addAll(listData); }
Example #7
Source File: RecommendFragment.java From qvod with MIT License | 4 votes |
public EasyRecyclerView getRvEasy() { return rvEasy; }
Example #8
Source File: VideoInfoActivity.java From qvod with MIT License | 4 votes |
public EasyRecyclerView getListView() { return evMore; }