mirror of
https://github.com/2009scape/2009Scape-mobile.git
synced 2025-12-20 13:30:15 -07:00
27 lines
665 B
Java
27 lines
665 B
Java
package net.kdt.pojavlaunch;
|
|
|
|
import android.support.v7.app.*;
|
|
import android.os.*;
|
|
import net.kdt.pojavlaunch.value.customcontrols.*;
|
|
|
|
public class CustomControlsActivity extends AppCompatActivity
|
|
{
|
|
@Override
|
|
protected void onCreate(Bundle savedInstanceState) {
|
|
super.onCreate(savedInstanceState);
|
|
|
|
CustomControls ctrl = new CustomControls();
|
|
|
|
ControlButton ctrlEx = new ControlButton();
|
|
ctrlEx.name = "Test";
|
|
ctrlEx.x = 100;
|
|
ctrlEx.y = 100;
|
|
|
|
ctrl.button = new ControlButton[]{ctrlEx};
|
|
|
|
ControlsLayout ctrlLayout = new ControlsLayout(this);
|
|
ctrlLayout.loadLayout(ctrl);
|
|
ctrlLayout.setCanMove(true);
|
|
setContentView(ctrlLayout);
|
|
}
|
|
}
|