florent37 / arclayout Goto Github PK
View Code? Open in Web Editor NEWWith Arc Layout explore new styles and approaches on material design
License: Apache License 2.0
With Arc Layout explore new styles and approaches on material design
License: Apache License 2.0
Awesome library dude!
But unfortunatly, some devices get it's arc very pixalized. There is any kind of anti-aliasing our any good practice that I am missing ?
Thanks a lot!
No resource identifier found for attribute 'arc_padding' in package 'xxx.xxx.xxx'
Add possibility to change ArcHeight programly and dynamically.
Error:(17) No resource identifier found for attribute 'arc_padding' in package
Thanks for the cool library.
I just noticed that the code is not here anymore?
The arc is not anti-alias!
When I use this lib there are some problem occured. The acr line is to much pixelize. Is it possible to make it smoother?
screenshot https://ibb.co/e9yRLG
You are referring an attribute in the README file which is missing in the current implementation of the library.
Hey man thanks for such awesome library!
My issue is: when using the cropOutside example the shadow is not being shown below the arc layout. Is there something I am missing?
Thanks again!
Arc is not getting rendered in android studio preview mode.
Also, getting this error in preview mode:
java.awt.image.RasterFormatException: (x + width) is outside raster
at sun.awt.image.IntegerInterleavedRaster.createWritableChild(IntegerInterleavedRaster.java:467)
at sun.awt.image.IntegerInterleavedRaster.createChild(IntegerInterleavedRaster.java:514)
at sun.java2d.pipe.GeneralCompositePipe.renderPathTile(GeneralCompositePipe.java:106)
at sun.java2d.pipe.AAShapePipe.renderTiles(AAShapePipe.java:201)
at sun.java2d.pipe.AAShapePipe.renderPath(AAShapePipe.java:159)
at sun.java2d.pipe.AAShapePipe.fill(AAShapePipe.java:68)
at sun.java2d.pipe.PixelToParallelogramConverter.fill(PixelToParallelogramConverter.java:164)
at sun.java2d.pipe.ValidatePipe.fill(ValidatePipe.java:160)
at sun.java2d.SunGraphics2D.fill(SunGraphics2D.java:2525)
at android.graphics.BaseCanvas_Delegate.lambda$nDrawPath$9(BaseCanvas_Delegate.java:356)
at com.android.layoutlib.bridge.impl.GcSnapshot.drawOnGraphics(GcSnapshot.java:720)
at com.android.layoutlib.bridge.impl.GcSnapshot.drawInLayer(GcSnapshot.java:633)
at com.android.layoutlib.bridge.impl.GcSnapshot.draw(GcSnapshot.java:601)
at android.graphics.BaseCanvas_Delegate.draw(BaseCanvas_Delegate.java:555)
at android.graphics.BaseCanvas_Delegate.nDrawPath(BaseCanvas_Delegate.java:324)
at android.graphics.BaseCanvas.nDrawPath(BaseCanvas.java)
at android.graphics.BaseCanvas.drawPath(BaseCanvas.java:298)
at android.graphics.Canvas.drawPath(Canvas.java:1645)
at com.github.florent37.arclayout.ArcLayout.dispatchDraw(ArcLayout.java:169)
at android.view.View.draw(View.java:19024)
at android.view.ViewGroup.drawChild_Original(ViewGroup.java:4256)
at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:63)
at android.view.ViewGroup.drawChild(ViewGroup.java:4256)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4042)
at android.view.View.draw(View.java:19024)
at android.view.ViewGroup.drawChild_Original(ViewGroup.java:4256)
at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:63)
at android.view.ViewGroup.drawChild(ViewGroup.java:4256)
at android.support.design.widget.CollapsingToolbarLayout.drawChild(CollapsingToolbarLayout.java:324)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4042)
at android.view.View.draw(View.java:19159)
at android.support.design.widget.CollapsingToolbarLayout.draw(CollapsingToolbarLayout.java:286)
at android.view.View.draw(View.java:19026)
at android.view.ViewGroup.drawChild_Original(ViewGroup.java:4256)
at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:63)
at android.view.ViewGroup.drawChild(ViewGroup.java:4256)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4042)
at android.view.View.draw(View.java:19159)
at android.view.View.draw(View.java:19026)
at android.view.ViewGroup.drawChild_Original(ViewGroup.java:4256)
at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:63)
at android.view.ViewGroup.drawChild(ViewGroup.java:4256)
at android.support.design.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1254)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4042)
at android.view.View.draw(View.java:19159)
at android.view.View.draw(View.java:19026)
at android.view.ViewGroup.drawChild_Original(ViewGroup.java:4256)
at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:63)
at android.view.ViewGroup.drawChild(ViewGroup.java:4256)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4042)
at android.view.View.draw(View.java:19024)
at android.view.ViewGroup.drawChild_Original(ViewGroup.java:4256)
at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:63)
at android.view.ViewGroup.drawChild(ViewGroup.java:4256)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4042)
at android.view.View.draw(View.java:19024)
at android.view.ViewGroup.drawChild_Original(ViewGroup.java:4256)
at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:63)
at android.view.ViewGroup.drawChild(ViewGroup.java:4256)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:4042)
at android.view.View.draw(View.java:19159)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.renderAndBuildResult(RenderSessionImpl.java:403)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.renderAndBuildResult(RenderSessionImpl.java:550)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:424)
at com.android.layoutlib.bridge.BridgeRenderSession.render(BridgeRenderSession.java:108)
at com.android.ide.common.rendering.api.RenderSession.render(RenderSession.java:154)
at com.android.ide.common.rendering.api.RenderSession.render(RenderSession.java:136)
at com.android.tools.idea.rendering.RenderTask.lambda$renderInner$5(RenderTask.java:760)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Error:/Location/app/src/main/res/layout/app_bar_main.xml:24 attribute 'package_name:arc_padding' not found
Error:java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.AaptException: AAPT2 link failed:
Error:com.android.builder.internal.aapt.AaptException: AAPT2 link failed:
Error:Execution failed for task ':app:processDebugResources'.
Failed to execute aapt
Hey, so the bug: in the attrs.xml
you have next values (0 and 1) for arc_cropDirection
attribute
<attr name="arc_cropDirection" format="enum">
<enum name="cropInside" value="0" />
<enum name="cropOutside" value="1"/>
</attr>
But in the ArcLayoutSettings
there are other values (1 and 2) for CROP_INSIDE
and CROP_OUTSIDE
respectively
public class ArcLayoutSettings {
public final static int CROP_INSIDE = 1;
public final static int CROP_OUTSIDE = 2;
...
}
So, therefore your isCropInside()
method will always return true
, which is wrong, cause you calculate it like
cropInside = (cropDirection & CROP_INSIDE) == CROP_INSIDE;
tested the library on my oneplus 6, the arc didn't show
Hie,
Please make your third party compatible with android Pie. I just checked it on pie and the arc is not rendering
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.