Here is a working onCreate
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ActivityMainBinding binding = ActivityMainBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
ArrayAdapter<Country> cheeseAdapter =
new ArrayAdapter<Country>(this, 0, countries) {
@Override
public View getView(int position,
View convertView,
ViewGroup parent) {
CountryListBinding rowBinding;
if(convertView == null) {
rowBinding = CountryListBinding.inflate(getLayoutInflater(), parent, false);