Friends App - Change from Flat to Native Theme

3 posts, 0 answers
  1. Matthew
    Matthew avatar
    16 posts
    Member since:
    Feb 2011

    Posted 10 Apr 2014 Link to this post

    I'm working with the Friends Sample App and it appears that it is hard-coded with the Kendo UI Flat theme. Does anyone know how to enable the native theme support so that if viewing on iPhone, the iOS native theme shows and if view on Android, the Android native theme shows?

    Thank you.
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 15 Apr 2014 Link to this post

    Hello Matthew,

    Indeed the Friends app is initialized as a kendo.mobile.Application with a flat skin. The application is initialized in the app.js file and the skin is set as descried in the Kendo.Mobile.Applicaiton Configuration tutorial.

    If you instead change the skin setting from flat to an empty string:
    // Initialize KendoUI mobile application
    var mobileApp = new kendo.mobile.Application(document.body, {
        transition: 'slide',
        layout: 'mobile-tabstrip',
        statusBarStyle: statusBarStyle,
        skin: ''
    });
    you will get a native look and feel of the app as the skin will depend on the device on which the app is currently running on. Please give this a try and let us know if it helps.

    Regards,
    Tina Stancheva
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  3. Peter
    Peter avatar
    2 posts
    Member since:
    Oct 2014

    Posted 15 Nov 2014 in reply to Tina Stancheva Link to this post

    Well It helped me! Thanks :)
Back to Top