Comments (10)
@zeldomar Here's a brief summary...
Clone the code from github into a folder (e.g. "cardslib") under your root Gradle project
Modify your local settings.gradle
like this (replacing YourApp with your app-level Gradle project):
include ':YourApp', ':library', ':library-extra'
project(':library').projectDir = new File('cardslib/library')
project(':library-extra').projectDir = new File('cardslib/library-extra')
Add the dependency to your app-level build.gradle
like this:
implementation project(':library')
implementation project(':library-extra')
Then just manually apply the diffs which I mentioned from GitHub to the cloned code.
I apologise if this is still not clear to you, I don't have the capacity to provide more detail than that, maybe you can ask on some forums like StackOverflow etc if things are still not clear.
from cardslib.
@zeldomar Here's a brief summary...
@ajburley
It's worked, thank you so so much !
from cardslib.
just WARNING, don't worry about it.
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
from cardslib.
It's not just a warning. In Android Studio 3.1, the project fails to compile with android.enableAapt2=false.
from cardslib.
Next year android.enableAapt2=false won't work.
I'm replacing with recycle-view with cursorloader. cardlib, as it is now won't work anymore. Uses a customer recycle-view.
from cardslib.
I'd like to second this request: Any intention to patch the library to make it compatible?
I'd like to continue using this great library. Thanks.
from cardslib.
enableAapt2 was removed from the later versions of Android Studio / Gradle plugin. It's ignored, so AAPT2 is always used regardless of this option.
There is no official patch but this patch is helpful: oplarshad/cardslib@ef39a99
from cardslib.
enableAapt2 was removed from the later versions of Android Studio / Gradle plugin. It's ignored, so AAPT2 is always used regardless of this option.
There is no official patch but this patch is helpful: oplarshad/cardslib@ef39a99
Hi,
Can you please explain to me how to use this fork of the cardslib project (including this patch) ?
Should I modify the dependencies of my projects? With what ?
Thank you in advance
from cardslib.
enableAapt2 was removed from the later versions of Android Studio / Gradle plugin. It's ignored, so AAPT2 is always used regardless of this option.
There is no official patch but this patch is helpful: oplarshad/cardslib@ef39a99Hi,
Can you please explain to me how to use this fork of the cardslib project (including this patch) ?
Should I modify the dependencies of my projects? With what ?Thank you in advance
I just manually applied the diffs from that patch to my local copy of vanilla cardslib. The changes are to fix the compiler errors which you get with AAPT2. This will allow the project to build with AAPT2.
Also, not all the changes from that commit are even required. Lots of the changes are actually to remove redundant code, which is a good thing, but not essential for this task of making it work with AAPT2.
Changed files where the changes are NOT only to remove redundant code are:
- /build.gradle
- /demo/extras/build.gradle
- /demo/stock/build.gradle
- /extra/extra-dragdrop/build.gradle
- /extra/extra-staggeredgrid/build.gradle
- /extra/extra-twoway/build.gradle
- /gradle/wrapper/gradle-wrapper.properties
- /library-cards/build.gradle
- /library-core/build.gradle
- /library-core/src/main/AndroidManifest.xml
- /library-core/src/main/java/it/gmariotti/cardslib/library/view/ForegroundLinearLayout.java
- /library-core/src/main/res/values/attrs.xml
- /library-recyclerview/build.gradle
The key changes are ForegroundLinearLayout.java
and attrs.xml
. The others are just to upgrade various versions.
from cardslib.
I just manually applied the diffs from that patch to my local copy of vanilla cardslib
Thanks for the reply, it gives me hope for my application :)
It is this part which is precisely the problem for me, how do you do that, please?
Do you have a link to a page explaining how to fork an android project, modify it locally, and reuse it in another local project?
Or simpler: can you please publish your patched version to Maven Central?
Thank you in advance
from cardslib.
Related Issues (20)
- programmatically dismiss the card
- unable to sync library-cards\build.gradle
- java.lang.IndexOutOfBoundsException CardWithList inside of a CardListView
- setupInnerViewElements method doesn't call
- Dynamic TextView MaterialLargeImageCard
- List of CardWithList
- Remove bottom padding of CardView HOT 1
- get
- No Such Method Error
- Card Library Expand From Bottom to top
- CardArrayRecyclerViewAdapter is not accepting a CustomCard
- CardWithList List Height?
- toggle expand button programatically
- Library seems not to work with Android Studio 3 preview HOT 7
- Fullscreen card listview
- FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':library-core:processDebugResources'. > Unknown android attribute 'ForegroundLinearLayout' HOT 4
- Any recent forks? HOT 1
- My xml keeps showing card error
- Unknown android attribute 'ForegroundLinearLayout' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cardslib.