inflate(resource, root, attachToRoot) 함수의 두번째 파라미터는
resource에 해당하는 레이아웃을 Root ViewGourp에 Attach하려고 할때.
Root ViewGourp에 대한 instance를 뜻합니다.
root Optional view to be the parent of the generated hierarchy (if attachToRoot is true), or else simply an object that provides a set of LayoutParams values for root of the returned hierarchy (if attachToRoot is false.)
onItemSelected 내에서 this는 .OnItemSelectedListener() 자체를 가리키기 때문에 에러가 발생합니다.