hello
I’m porting an app from C++/SDL to android.
It works well, but now, I try to include a custom keyboard in the app (because ibniz reacts only at certain keys)
for this I used the strategy explained here :
http://www.fampennings.nl/maarten/android/09keyboard/index.htm
I succes to display the keyboard but my SDL screen and sound is gone.
I suppose that the problem is to display the keyboard I have to add in the main activity (java) :
@Override protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
mCustomKeyboard= new CustomKeyboard(this, R.id.keyboardview, R.xml.ibnizkbrd );
}
It seems to be like if
setContentView(R.layout.main);
replace the SDL screen by the layout containing the keyboard.
Anybody knows
-does the SDL screen can be explicitly drawed in the layout XML file?
- or the android layout XML cant be “background transparent”?
Any other strategies?
thanks