mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +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) {
|
public EbitenView(Context context) {
|
||||||
super(context);
|
super(context);
|
||||||
ebitenSurfaceView_ = new EbitenSurfaceView(context);
|
|
||||||
initialize();
|
initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
public EbitenView(Context context, AttributeSet attrs) {
|
public EbitenView(Context context, AttributeSet attrs) {
|
||||||
super(context, attrs);
|
super(context, attrs);
|
||||||
ebitenSurfaceView_ = new EbitenSurfaceView(context, attrs);
|
|
||||||
initialize();
|
initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void initialize() {
|
private void initialize() {
|
||||||
|
ebitenSurfaceView_ = new EbitenSurfaceView(getContext());
|
||||||
LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
|
LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
|
||||||
addView(ebitenSurfaceView_, params);
|
addView(ebitenSurfaceView_, params);
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user