I want to do something like this:
public void setContentView(int resId) {
this.content = itemView.findViewById(resId);
}
but don't know how. Any solutions to fix my code below?
private var contentView: AppCompatEditText? = null
set(value: Int) {field = v.findViewById(value)} // value in setter is AppCompatEditText? type not Int