Back to project page RecyclerViewLib.
The source code is released under:
Apache License
If you think the Android project RecyclerViewLib listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.twotoasters.recycled; //from www . j a v a2s.com import android.view.View; import android.widget.TextView; import com.twotoasters.android.support.v7.widget.CardView; import com.twotoasters.android.support.v7.widget.RecyclerView.ViewHolder; public class NameViewHolder extends ViewHolder { public final CardView cardView; public final TextView textView; public NameViewHolder(View itemView) { super(itemView); cardView = (CardView) itemView; cardView.setRadius(itemView.getResources().getDimension(R.dimen.card_radius)); textView = (TextView) cardView.getChildAt(0); } }