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

Tab strip text or badge icon not displaing in android with phonegap in kendo mobile ui

1 Answer 153 Views
Application
This is a migrated thread and some comments may be shown as answers.
Karthik
Top achievements
Rank 1
Karthik asked on 17 Sep 2013, 12:34 PM
This is my index page, i am just trying to use some tabstrip example for my application in phonegap with kendo mobile

<!DOCTYPE html>
<html>
<head>
    <title>My App</title>

    <link href="styles/kendo.mobile.all.min.css" rel="stylesheet" />
    <link href="customize.kendo.css" rel="stylesheet" />
</head>
<body>
    <div id="home" data-role="view" data-layout="default">
        Hello Mobile World!
    </div>

    <section data-role="layout" data-id="default">
        <header data-role="header">
            <div data-role="navbar">My App</div>
        </header>
        <!--View content will render here-->
        <footer data-role="footer">
            <div data-role="tabstrip">
                <a href="#home">Home</a>
                <a href="about.html">About</a>     
            </div> 
        </footer>
    </section>
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
    <script src="js/jquery.min.js"></script>
    <script src="js/kendo.all.min.js"></script>
    <script>
    var app = new kendo.mobile.Application();
</script>
</body>
</html>


I have use some css which i found in kendo forum to enable the tabstrip title, i have written this css inside my customize.kendo.css

.km-android .km-tabstrip a
{
    color: #a8a8a8;
}

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 19 Sep 2013, 06:52 AM
Hello Karthik,

The icons are not displayed because you need to specify the data-icon attribute of the link in the TabStrip. You can see a reference with all the icons available with Kendo UI Mobile on the following link:

http://docs.kendoui.com/getting-started/mobile/icons

As for the text - by default the text is not displayed on Android devices, however you can show it using some custom css styling:


.km-android #home .km-tabstrip a
{
 color: #a8a8a8;
}
.km-android #home .km-tabstrip .km-text
{
height: 3.7rem;
padding-top: 1.8rem;
text-indent: 0;
font-size:0.9em;
}

Please check the following example as a reference (you will need to run it on Android device to see the difference):

http://jsbin.com/owiyAhu/1/edit
 

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Application
Asked by
Karthik
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or