mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
cmd/ebitenmobile: Refactoring
This commit is contained in:
parent
6f6cceb42c
commit
15dc4bc647
@ -361,17 +361,16 @@ public class EbitenView extends ViewGroup {
|
||||
|
||||
public EbitenView(Context context) {
|
||||
super(context);
|
||||
ebitenSurfaceView_ = new EbitenSurfaceView(context);
|
||||
initialize();
|
||||
}
|
||||
|
||||
public EbitenView(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
ebitenSurfaceView_ = new EbitenSurfaceView(context, attrs);
|
||||
initialize();
|
||||
}
|
||||
|
||||
private void initialize() {
|
||||
ebitenSurfaceView_ = new EbitenSurfaceView(getContext());
|
||||
LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
|
||||
addView(ebitenSurfaceView_, params);
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user