csdodd / gradientlayout Goto Github PK
View Code? Open in Web Editor NEWAndroid gradient backgrounds for your layouts
License: Apache License 2.0
Android gradient backgrounds for your layouts
License: Apache License 2.0
Hello, could you describe benefits of using this library over using a XML gradient drawable? Thank you.
I am getting the following error while trying to use the library in my project:
Error:FAILURE: Build failed with an exception.
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
Output: PATH_TO_PROJECT/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:817: error: duplicate value for resource 'attr/orientation' with config ''.
PATH_TO_PROJECT/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:817: error: resource previously defined here.
Command: /Users/shajeelafzal/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.0-alpha16-4748712-osx.jar/ace538feb31c631367cf6256f7814c69/aapt2-3.2.0-alpha16-4748712-osx/aapt2 compile --legacy
-o
PATH_TO_PROJECT/app/build/intermediates/res/merged/debug
PATH_TO_PROJECT/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml
Daemon: AAPT2 aapt2-3.2.0-alpha16-4748712-osx Daemon #0
Output: /Users/shajeelafzal/.gradle/caches/transforms-1/files-1.1/constraint-layout-1.1.0.aar/07e0ebfd3fa4627aa5ceb077a0ec4b56/res/values/values.xml:130:5-108: AAPT: error: duplicate value for resource 'attr/orientation' with config ''.
/Users/shajeelafzal/.gradle/caches/transforms-1/files-1.1/constraint-layout-1.1.0.aar/07e0ebfd3fa4627aa5ceb077a0ec4b56/res/values/values.xml:130:5-108: AAPT: error: resource previously defined here.
Command: /Users/shajeelafzal/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.0-alpha16-4748712-osx.jar/ace538feb31c631367cf6256f7814c69/aapt2-3.2.0-alpha16-4748712-osx/aapt2 compile --legacy
-o
PATH_TO_PROJECT/app/build/intermediates/res/merged/debug
PATH_TO_PROJECT/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml
Daemon: AAPT2 aapt2-3.2.0-alpha16-4748712-osx Daemon #0
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 3s
Exception in thread "ForkJoinPool.commonPool-worker-6" java.lang.IllegalStateException: AAPT Process manager cannot be shut down while daemons are in use
at com.android.builder.internal.aapt.v2.Aapt2DaemonManager.shutdown(Aapt2DaemonManager.kt:96)
at com.android.build.gradle.internal.res.namespaced.RegisteredAaptService.shutdown(Aapt2DaemonManagerService.kt:61)
at com.android.build.gradle.internal.workeractions.WorkerActionServiceRegistry$shutdownAllRegisteredServices$1$1.run(WorkerActionServiceRegistry.kt:96)
at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
急急急!!!!什么时候添加 圆角功能!!!!?????
can yout please make class
GradientBackground.java
public and not final and change the code so we can make classes like toolbar and coordinatorlayouts gradient?
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.