Description
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.