Code example for Spinner

Methods: setLayoutParamssetAdapter, setOnItemSelectedListener