This is a migrated thread and some comments may be shown as answers.

NavBar title does not show up on Android

4 Answers 299 Views
NavBar
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Iron
Christian asked on 05 Jun 2012, 07:25 PM
When I set the navbar title in HTML or via JavaScript
$("#resultsViewNavBar").data("kendoMobileNavBar").title(currentUser);

... it will just not be displayed/shown on Android devices. Is this by design?
If yes: can we change/enable/override this behavior?

Thanks.

4 Answers, 1 is accepted

Sort by
0
Accepted
Kamen Bundev
Telerik team
answered on 06 Jun 2012, 07:09 AM
Hi Christian,

Yes, it is by design for Android - the titles should go in the top action bar in Android 4 (and Android 2 usually doesn't have titles at all), however the NavBar doesn't support action bar styling, at least yet. If you need to show it, you can override it with enough specificity (to avoid the !important and to constrain the style to Android):
.km-android .km-navbar div.km-view-title
{
    display: inline-block;
}


Regards,
Kamen Bundev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Christian
Top achievements
Rank 1
Iron
answered on 06 Jun 2012, 07:24 AM
Hi Kamen,

wonderful - thanks for the quick and correct :) answer.

Cheers.
0
N Mackay
Top achievements
Rank 1
answered on 12 Sep 2012, 11:31 AM
Hi Kamen,

That's a really useful tip.

might be worth adding to the documentation.

http://docs.kendoui.com/documentation/getting-started/mobile/navbar/overview 

Thanks,
Norman.
0
Kamen Bundev
Telerik team
answered on 17 Sep 2012, 10:54 AM
Hi Norman,

That's a good suggestion, I've added the style to the NavBar Getting Started section, it will be live soon. It also includes the visibility: visible style that is needed in Q2 SP1 onwards.

Regards,
Kamen Bundev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
NavBar
Asked by
Christian
Top achievements
Rank 1
Iron
Answers by
Kamen Bundev
Telerik team
Christian
Top achievements
Rank 1
Iron
N Mackay
Top achievements
Rank 1
Share this question
or