Giter Site home page Giter Site logo

Comments (2)

bradmartin avatar bradmartin commented on June 1, 2024 1

CardView is part of the android support library android.support.v7.widget.CardView (android.support) so it works on lower SDKs. Can read more here.

From docs: Some of the Support Library packages have package names to indicate the minimum level of the API they originally supported, using a v# notation, such as the support-v4 package. Starting with Support Library version 26.0.0 (released in July 2017), the minimum supported API level has changed to Android 4.0 (API level 14) for all support library packages.

Right now this plugin is still using a much older version of the support lib via gradle if your project doesn't have one, so we could definitely update that in the include.gradle

      def supportVer = "22.2.0";

      if(project.hasProperty("supportVersion")) {
       supportVer = supportVersion
      }

	 compile "com.android.support:cardview-v7:$supportVer"
}```

Newer NS projects should be using a more updated support library so it shouldn't be an issue, but no harm in trying to use the latest in this plugin and then falling back to local version if specified for a project.

from nativescript-cardview.

vratojr avatar vratojr commented on June 1, 2024

I'd say 25: https://developer.android.com/reference/android/support/v7/widget/CardView?hl=zh-tw

from nativescript-cardview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.