I found the below documentation on how to set a customView. But when I change the id in my layout to "text1" and "icon",
customView
id
You need to use the system Resource identifiers. That is, @android:id/text1 and @android:id/icon.
@android:id/text1
@android:id/icon
If you would need to reference these IDs in your code, they would be android.R.id.text1 and android.R.id.icon.
android.R.id.text1
android.R.id.icon