Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Help to remove the Action Bar on Android

$
0
0

I've followed the instructions on the page Android Action Bar and created a custom theme to try to hide the action bar, but it doesn't work, the action bar still shows up, no matter what I try. If anyone can help, please let me know. I'm using Titanium 4.0 RC4, Appcelerator Studio 4.0.1 on Mac OSX Yosemite 10.10.3.

I've tried everything on the Genymotion and on my Samsumg Device (Android 4.4.2) and on both of them I still see the damn action bar. I've tried a few other options looking at the android documentation but the Theme documentation is all 3.x, there's no 4.x yet and nothing seem to work.

ps.: I was able to use activity.actionBar.hide(); but that makes the action bar to show and disappear and what I want to do do it is to completely disappear.

On Titanium 4.x there's no "values" folder under platform/android/res/ but I created one and put a custom theme there (mytheme.xml):

<?xml version="1.0" encoding="utf-8"?> <resources> <style name="Theme.MyTheme" parent="@style/Theme.AppCompat"> <item name="android:windowActionBar">false</item> <item name="android:windowNoTitle">true</item> </style> </resources>

Here's my android manifest on Tiapp.xml: <android xmlns:android="http://schemas.android.com/apk/res/android"> <manifest> <!--uses-sdk android:minSdkVersion="14" /--> <uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <application android:theme="@style/Theme.MyTheme"/> <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="21"/> </manifest> </android>

Here's my login.xml (where I have my window):

<Alloy> <Window id="login"> <View id="mainview" class="loginview"> </View> </Window> </Alloy>

Can anybody help and help me to figure out why that custom theme Theme.MyTheme is not working for me?

Thanks in advance, Marceu


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>