Skip to content

Instantly share code, notes, and snippets.

@tbillington
Created September 10, 2015 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbillington/92287aa0ca173137f3f9 to your computer and use it in GitHub Desktop.
Save tbillington/92287aa0ca173137f3f9 to your computer and use it in GitHub Desktop.
public static class ViewHolder extends RecyclerView.ViewHolder {
public LinearLayout linearLayout;
public ImageView image;
public TextView headingText;
public TextView skillText;
public ViewHolder(LinearLayout v) {
super(v);
linearLayout = v;
image = ((ImageView)((ViewGroup)((ViewGroup)((ViewGroup)linearLayout.getChildAt(0)).getChildAt(0)).getChildAt(0)).getChildAt(0));
headingText = ((TextView)((ViewGroup)((ViewGroup)((ViewGroup)linearLayout.getChildAt(0)).getChildAt(0)).getChildAt(0)).getChildAt(1));
skillText = ((TextView)((ViewGroup)((ViewGroup)linearLayout.getChildAt(0)).getChildAt(0)).getChildAt(1));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment