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

material design actionbar icon

$
0
0

Hi, I struggle with The TI SDK 4.x.x.GA because of Android basic UI.

actionbar

How Can i use like this?

menu items are working. but left icon not working.

I tried many times. but not working.

var actionbar = win.getActivity().getActionBar();
if (actionbar) {
    actionbar.onHomeIconItemSelected = function(ev) { //works
        alert(1);
    };
    actionbar.icon = '/appicon.png'; // not working
    actionbar.logo= '/appicon.png'; // not working
    actionbar.displayHomeAsUp = true; // working. but image(left arrow) fixed How i can change this?
    actionbar.title = "ActionBar Sample";
}
displayHomeAsUp make <- (left arrow) icon. how can i change this?

Viewing all articles
Browse latest Browse all 8068

Trending Articles