Skip to content

the problem of combination andengine and android-view #18

Open
@blissoft

Description

@blissoft

I have troble making game with andengine. And the game root-activity is LayoutGameActivity.

in MainActivity.java

@OverRide
public void onClick(ButtonSprite pButtonSprite, float pTouchAreaLocalX,
float pTouchAreaLocalY) {
// TODO Auto-generated method stub

if(pButtonSprite.equals(btn))
{
this.runOnUiThread(new Runnable(){

@OverRide
public void run() {
// TODO Auto-generated method stub
EditText edit_text=(EditText)findViewById(R.id.edit_text);
edit_text.setVisibility(View.VISIBLE);
}

});

}
}

in main.xml

<org.andengine.opengl.view.RenderSurfaceView
android:id="@+id/xmllayoutexample_rendersurfaceview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>

and as you know, I added the 'EditText' in main.xml .And in game, I want to EditText to visible.

But the edittext is not visible.Though the virtual-keyboard pop-up, the edittext is not visible.

And I attach the video of this problem.

www.youtube.com/watch?v=gj8FmEUBvaY

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions