- π Iβm currently working @ Blueground as a Staff Software Engineer (Platform/SRE/DevOps)
- πΈοΈ https://pavlospt.com
pavlospt / circleview Goto Github PK
View Code? Open in Web Editor NEWA Circle View containing Title and Subtitle
A Circle View containing Title and Subtitle
Why do I get this error when trying to add this library to my gradle files ?
Error:Artifact 'com.github.pavlospt:circleview:1.0-SNAPSHOT:circleview.jar' not found.
I am using AS Beta 0.8.2
The characters are shown reversed...(Arabic is written from right to left)
Is it possible to add a shadow with a customizable offset, instead of a homogeneous shadow centered in the center of the CircleView?
I tried defining a drawable as background, but it didn't work at all:
<com.github.pavlospt.CircleView
...
android:layout_width="192dp"
android:layout_height="192dp"
android:background="@drawable/circle_shadow"
...
/>
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:bottom="0dp"
android:left="192dp"
android:right="0dp"
android:top="192dp">
<shape android:shape="oval">
<solid android:color="#bdbdbd" />
</shape>
</item>
</layer-list>
Neither of these work (both result in a white fill color):
// via code
circleView.setFillColor(Color.TRANSPARENT);
// via xml
app:cv_fillColor="#00000000"
In the section Apps using this library
the link to the Hungry
app is broken.
Hi, another suggestion.
I want only show a circle without text, but the lib' s default behaviour is to set Tile and Subtitle and I have to set the text to "" in xml or programmatically which is annoying.
Please make the text optional, or if possible I can make a pull request:-)
Hello,
is possible to change or set the space between title and subtitle?
Thanks
Perfect. Gratz to greeks i will use it soon
Hi, Thanks for the lib.
I used the sample code from the README but encounter some error, the customised attar is wrong.
After I look into the attr values xml and replaced with the attr from the file, it works well.
So Please Update README!
Change the View to com.github.pavlospt.CircleView
Tried having this attribute in a layout's circleview with the property set to 0. I had resource issues and the compiler told me that app:strokeWidth
was invalid. I removed it, rebuilt, and the problem went away.
Other attributes work.
Using the gradle version
Can I set a space between the title and the subtitle, since they often seem to overlap.
Thanks
Hi there, I need to change title color programatically, but there is no method for it. Is there any workaround for this?
Hi,nice library...I know this is off topic but...Please would it be possible to create an hexagon equivalent around the text..I mean replacing the circle with an hexagon? If possible,can you help with procedure.. Once again,you just saved someone with this library...Thanks..I really appreciate...
I use: compile 'com.github.pavlospt:circleview:1.3'
I included:
<com.github.circleView xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="300dp" android:id="@+id/test" android:layout_height="300dp" app:cv_titleText="title" app:cv_subtitleText="subtitle" app:cv_titleSize="12dp" app:cv_subtitleSize="9dp" app:cv_fillRadius="0.9" app:cv_strokeWidthSize="5"/>
Got Class not found:
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.github.circleView" on path: DexPathList[[zip file "/data/app/....
Do you have any idea how to fix it using only gradle dependency?
I have Language selection using circleview, click on 1 button, will apply my custom style. But only the titleColor i couldn't change.
It would be cool to have this animate to show progress.
Hello!
First of all than you so much for this library)
I tried to add space between title and subtitle and see this attribute. cv_titleSubtitleSpace="" Which types of params access this attribute? There is no information in docs... I tried to set it to 20 dp or sp and get errors.
Thanks in advance for yoor attention)
When using with another library (e.g. viewpagerindicator), android attribute definitions are global. This means that fillColor
, for example, defined in both viewpagerindicator's attrs.xml and CircleView's attrs.xml conflict. (See also https://code.google.com/p/android/issues/detail?id=22576 ).
The solution to this is to prefix the attributes with something (for example, PagerSlidingTabStrip
uses psts
). Since cv
is pretty common, I would suggest using pcv (shorthand for pavlospt CircleView
). Thus, fillColor
would become `pcvFillColor.
@pavlospt If you want, I can create a PR for you (Sorry I couldn't comment - apparently comments are limited)
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.