googlearchive / android-cardview Goto Github PK
View Code? Open in Web Editor NEWMigrated:
Home Page: https://github.com/android/views-widgets
License: Apache License 2.0
Migrated:
Home Page: https://github.com/android/views-widgets
License: Apache License 2.0
Hi All,
In the CardViewFragment.java
module the call
mCardView.setElevation(progress);
throws an exception:
java.lang.NoSuchMethodError: android.support.v7.widget.CardView.setElevation
Changing it to "setCardElevation" works better, but on an API 19 emulator doesn't really do much in the way of elevation.
This issue is discussed in SO: http://stackoverflow.com/a/27688167/3853712
I think I would recommend just popping the minSdkVersion 7
to 21 for the purposes of this sample.
What is funny is that I can see a "setElevation" in the underlying implementation of CardView, but it is not present at the top level. Instead the "setElevation" is implemented in the View parent as of API 21:
https://developer.android.com/reference/android/view/View.html
See also:
Error:(37, 9) Execution failed for task ':Application:processDebugTestManifest'.
java.lang.RuntimeException: Manifest merger failed : Attribute instrumentation#android.test.InstrumentationTestRunner@label value=(Tests for CardView sample) from AndroidManifest.xml:37:9
is also present at manifestMerger3603637974806095367.xml:15:22 value=(Tests for com.example.android.cardview)
Suggestion: add 'tools:replace="android:label"' to element at AndroidManifest.xml:35:5 to override
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.