app/src/main/java/com/mohammadKZ/CoronaVirus_COVID19_statistics/fragments/CountryFragment.java
private void ViewsController() {

        spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
            @Override
            public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {

                ShowInfo(i);
            }

            @Override
            public void onNothingSelected(AdapterView<?> adapterView) {

            }
        });
    }
// set the view controller ==> spinner controller
set the view controller ==> spinner controller
set the view controller == > spinner controller
private void ViewsController() {
        spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
            @Override
            public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {
                ShowInfo(i);
            }
            @Override
            public void onNothingSelected(AdapterView<?> adapterView) {
            }
        });
    }
private void ViewsController ( ) { spinner . setOnItemSelectedListener ( new AdapterView . OnItemSelectedListener ( ) { @ Override public void onItemSelected ( AdapterView < ? > adapterView , View view , int i , long l ) { ShowInfo ( i ) ; } @ Override public void onNothingSelected ( AdapterView < ? > adapterView ) { } } ) ; }
set the view controller ==> spinner controller
set the view controller == > spinner controller