(생략..)
public
class
TActivity
extends
GraphicsActivity
implements
ColorPickerDialog.OnColorChangedListener {
(생략..)
@Override
protected
void
onCreate(Bundle savedInstanceState) {
super
.onCreate(savedInstanceState);
(생략..)
setContentView(
new
MyView(
this
));
setLayout();
}
public
void
sound2(){
soundpool_menupen.play(menupensound,
1
,
1
,
0
,
0
,
1
);
}
public
void
setLayout(){
View v = LayoutInflater.from(
this
).inflate(R.layout.admob_ad,
null
);
addContentView( v,
new
LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT ) ) ;
v = LayoutInflater.from(
this
).inflate(R.layout.topmenu,
null
);
addContentView( v,
new
LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT ) ) ;
TopMenu.setTopMenu(
this
, v,
0
);
Locale locale = getBaseContext().getResources().getConfiguration().locale;
String lancode = locale.getLanguage();
v = LayoutInflater.from(
this
).inflate( R.layout.bottommenu,
null
);
addContentView( v,
new
LayoutParams( LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT ) ) ;
BottomMenu.setBottomMenu(
this
, v,
0
) ;
}
public
class
MyView
extends
View {
(생략..)
}
public
void
ShowBefore(){
(생략..)
setContentView(
new
MyView(
this
));
setLayout();
}
public
void
ShowAfter(){
(생략..)
setContentView(
new
MyView(
this
));
setLayout();
}
}