小编san*_*dee的帖子

按钮ClickListener在LibGDX游戏中不起作用

我正在使用LibGDX开发Android游戏.菜单屏幕中有4个按钮,但ClickListener这些按钮不起作用.

// retrieve the custom skin for our 2D widgets
Skin skin = super.getSkin();

// create the table actor and add it to the stage
table = new Table( skin );
table.width = stage.width();
table.height = stage.height();
stage.addActor( table );

// retrieve the table's layout
TableLayout layout = table.getTableLayout();

// register the button "start game"
TextButton startGameButton = new TextButton( "Start game", skin );
startGameButton.addListener( new ClickListener() {
    @Override
    public void clicked(InputEvent event, float x, float y) { …
Run Code Online (Sandbox Code Playgroud)

java android libgdx

17
推荐指数
2
解决办法
3万
查看次数

SQLite数据库未显示在文件资源管理器中

我的应用程序中有一个SQLite数据库.当我在文件资源管理器中检查数据库是否已创建时,该data文件夹中没有任何数据库文件.它甚至没有显示使用该adb shell命令.这是否意味着尚未创建数据库?关于如何解决这个问题的任何建议?

android android-sqlite

4
推荐指数
1
解决办法
4222
查看次数

标签 统计

android ×2

android-sqlite ×1

java ×1

libgdx ×1