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

Android hide actionBar flickering

$
0
0

Hi,

If I try to hide the actionBar on Android, the window seems to be pulled up which causes flickering. Can I prevent the flickering from happening?

  • Titanium SDK: Titanium 3.5.1 (2015/03/05 10:08 96875c9)
  • Platform & version: Android 4.3, 5.0.2, 4.1.1 (doesn't happen on 2.3.7)

index.js

var isHidden = false;
setInterval(function() {
    if (isHidden) {
        $.index.activity.actionBar.show();
    } else {
        $.index.activity.actionBar.hide();
    }
 
    isHidden = !isHidden;
}, 2000);
 
$.index.open();
index.xml
<Alloy>
    <Window class="container" backgroundColor="black">
    </Window>
</Alloy>
If you don't give the window a background color you can't see the unwanted effect.

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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