I've an android app written using titanium sdk. the new sdk (3.5.0GA) changed things about managing the default window title and actionbar behaviour.
the official blog offers 3 ways to solve this problem :
the first solution ($.index.activity.actionBar.hide();) has a problem: the actionbar is shown for a while before being hidden. that animation is not what I want.
the second solution would be better if I can make it works (customtheme.xml)
my situation is as follows:
tiapp.xml
<android xmlns:android="http://ift.tt/nIICcg">
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19"/>
<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application android:theme="@style/MyTheme"/>
<application android:hardwareAccelerated="true"/>
<application android:largeHeap="true"/>
</manifest>
</android>
/platform/android/res/values/customtheme.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="MyTheme">
<item name="windowActionBar">false</item>
<item name="android:windowNoTitle">true</item>
</style>
</resources>
the same thing done with a plain android studio project, does the magic.
I don't know how to solve my problem. anybody knows?
ps. didn't try the third option, but just want to make the second one works. less code lines...
No comments:
Post a Comment