Create views programmatically in a RecyclerView.ViewHolder and passing arguments to it
<p>Can I create views programmatically in a <code>ViewHolder</code> instead of binding them from XML in the classic way as in all examples?
Also, my views need an image filepath in order to be created, how do I pass that to the <code>ViewHolder</code></p>

<pre><code>protected static class ImagePreviewViewHolder extends RecyclerView.ViewHolder {
    public ImageView imageView;
    public LinearLayout page;

    public ImagePreviewViewHolder(View itemView) {
        super(itemView);
        page = createPage(filePath); // How do I pass the filepath?
    }
}
</code></pre>