List 뷰 스크롤 때문에 헤더를 이용해서 List뷰 위에 gallery를 붙였는데


gallerylayout = (LinearLayout)li.inflate(R.layout.....)


List.addheaderView(gallerylayout)


이런식으로요...


gallery에 adapter를 연결할때 imageview랑 text를 연결하고 싶어서


getview에

mInflater = (LayoutInflater)context.getSystemSevice(Context.Layout_Inflater_Service)

convertView = mInflater.inflate(layout, parent, false)


ImageView image = (ImageView)convertView.findViewById(R.id...)

이런식으로 헀는데


에러가 납니다.ㅠㅠ


이거 어떤식으로 연결해야 하나요..ㅠ 여기서 몇일째 해매고있어서요.ㅠ 좀도와주세요.ㅠㅠ


에러 내용은.


classcastexception..

android.widget.Gallery@layoutparams cannot be cast to android.widget.LinearLayout@LaoutParmas..


어디서 케스팅을시도하는지 잘 모르겠어서요...ㅠㅠ