Pass layout resource id and textview resource id