Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the problem of combination andengine and android-view #18

Open
blissoft opened this issue Jun 25, 2012 · 0 comments
Open

the problem of combination andengine and android-view #18

blissoft opened this issue Jun 25, 2012 · 0 comments

Comments

@blissoft
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant