[Android-development] ministro and android theme
BogDan
bog_dan_ro at yahoo.com
Mon Oct 27 11:45:06 CET 2014
You need to set QT_ANDROID_DEFAULT_THEME variable.
public class MyActivity extends QtActivity
{
public MyActivity()
{
super();
QT_ANDROID_DEFAULT_THEME = "Theme_Light_NoTitleBar_Fullscreen";
}
//.....
}
BogDan.
________________________________
From: "maitai at virtual-winds.org" <maitai at virtual-winds.org>
To: BogDan <bog_dan_ro at yahoo.com>
Sent: Monday, October 27, 2014 12:40 PM
Subject: Re: [Android-development] ministro and android theme
Thanks BogDan,
I've removed theme specification in the manisfest but it doesn't seem to work. My onCreate() is that one:
@Override
publicvoidonCreate(Bundleqt){
if(android.os.Build.VERSION.SDK_INT <= 11) {
super.setTheme(android.R.style.Theme_Light_NoTitleBar_Fullscreen);
}else{
super.setTheme(android.R.style.Theme_Holo_NoActionBar_Fullscreen);
}
super.onCreate(qt);
}
The theme is applied, but ministro does not re-extract the style from it. I wanted to avoid having several apk depending on API level...
Le 27-10-2014 08:05, BogDan a écrit :
Yes, by removing the one from your manifest.
>
>BogDan.
>
>
>________________________________
>From: "maitai at virtual-winds.org" <maitai at virtual-winds.org>
>To: Android Development <Android-development at qt-project.org>
>Sent: Sunday, October 26, 2014 8:20 PM
>Subject: [Android-development] ministro and android theme
>
>
>Hello,
>
>In some circumstances I am changing the android theme dynamically by
>overriding activity::onCreate(). As it seems ministro still applies the
>style as defined in the manifest. Is there a way I can force ministro to
>re-extract device look and feel data in that case?
>
>Thanks,
>Philippe Lelong.
>_______________________________________________
>Android-development mailing list
>Android-development at qt-project.org
>http://lists.qt-project.org/mailman/listinfo/android-development
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/android-development/attachments/20141027/f54381aa/attachment.html>
More information about the Android-development
mailing list