Created
January 22, 2018 12:23
-
-
Save AnkitSuda/0014694c8fee3b03f0130047e5af79d2 to your computer and use it in GitHub Desktop.
FRA viewholder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ViewHolder extends RecyclerView.ViewHolder { | |
| public LinearLayout root; | |
| public TextView txtTitle; | |
| public TextView txtDesc; | |
| public ViewHolder(View itemView) { | |
| super(itemView); | |
| root = itemView.findViewById(R.id.list_root); | |
| txtTitle = itemView.findViewById(R.id.list_title); | |
| txtDesc = itemView.findViewById(R.id.list_desc); | |
| } | |
| public void setTxtTitle(String string) { | |
| txtTitle.setText(string); | |
| } | |
| public void setTxtDesc(String string) { | |
| txtDesc.setText(string); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment