You can simply create your CheckedTextView from XML file by inflating it like
LayoutInflater.from(context).inflate(R.layout.myfile, null);
and that should be it. If you want to set the drawable do something like this
checkedTextView.setCheckMarkDrawable(getResources().getDrawable(R.drawable.filename));