스마트기기개발관련/안드로이드 개발
안드로이드 다이얼로그,뷰어,LinearLayout, 레이아웃 컨트롤 등에 xml 레이아웃 적용 시키기
AlrepondTech
2011. 7. 11. 17:23
반응형
=================================
=================================
=================================
res -> layout -> cgamedlg.xml
class Game extends AlertDialog
{
...
protected Game(Context context) {
super(context);
// TODO Auto-generated constructor stub
init(context);
}
void init(Context context)
{
final LinearLayout linear = (LinearLayout) View.inflate(context, R.layout.cgamedlg, null);
setView(linear);
}
......
}
=================================
=================================
=================================
반응형