[Android-development] ministro and android theme

maitai at virtual-winds.org maitai at virtual-winds.org
Mon Oct 27 11:52:10 CET 2014


 

Very nice, it works perfectly 

Thanks again BogDan 

Le 27-10-2014 11:45, BogDan a écrit : 

> 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
> 
> public void onCreate(Bundle qt) {
> 
> 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 [1]
 

Links:
------
[1] 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/3247c72a/attachment.html>


More information about the Android-development mailing list