Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Native look is lost in Android 5.1 (using QQuick)
Forum Updated to NodeBB v4.3 + New Features

Native look is lost in Android 5.1 (using QQuick)

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 927 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dmendizabal
    wrote on last edited by
    #1

    I am not sure why, but the same application which is working fine in Android 4.4.2 has lost all the native look in Android 5.1.
    Android 4.4.2 -> Screenshot
    Android 5.1 -> Screenshot

    Modules used in .pro = quick network
    I'm building with Android build SDK = 22

    Any idea what could be the problem?

    1 Reply Last reply
    0
    • O Offline
      O Offline
      onek24
      wrote on last edited by
      #2

      I might be wrong but doesn't 'native look' mean that it either adapts or uses the android look, so this will depend on your android version and since Android 5.x has got another style, your application will have another style too.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dmendizabal
        wrote on last edited by
        #3

        Yes, probably that's the problem. The styling for Android 5.1 is not developed as yet.
        Is there a way to use the styling of version 4.x.x as a fall back instead?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dmendizabal
          wrote on last edited by dmendizabal
          #4

          Just in case someone else is struggling with this problem, I found the solution and it is quite simple.
          You just need to indicate the theme to use in your AndroidManifest.xml file explicitly.

          <application ... android:theme="@android:style/Theme.Light"> Or
          <application ... android:theme="@android:style/Theme.Dark">

          This solution will ensure that your application will use the Holo theme (light or dark). Otherwise, it will try to look for the correct theme based on the underlaying Android version, which would be Material theme for version 5 and it is not implemented as yet.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved