Git Product home page Git Product logo

circleview's Introduction

Hi there πŸ‘‹

Pavlos' github stats

circleview's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

circleview's Issues

Importing in android studio

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

Arabic support

The characters are shown reversed...(Arabic is written from right to left)

Add shadow with offset

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>

How to apply a transparent fill color?

Neither of these work (both result in a white fill color):

        // via code
        circleView.setFillColor(Color.TRANSPARENT);

        // via xml
        app:cv_fillColor="#00000000"

makes the text optional

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:-)

Greek lib

Perfect. Gratz to greeks i will use it soon

Please update README

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!

Stroke width invalid

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

Hexagon Equivalent

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...

Got ClassNotFoundException

  1. I use: compile 'com.github.pavlospt:circleview:1.3'

  2. 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"/>

  3. 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?

Fill Radius is offset

If I use app:cv_fillRadius="0.9", the inner circle seems to be a little offset to the top left. Using app:cv_fillRadius="0.95" really offsets the ring and circle. Anyway to fix this?

Example for "0.9":
screenshot 2018-05-09 10 19 05

Example for "0.95":
screenshot 2018-05-09 10 21 21

cv_titleSubtitleSpace may be not working?

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)

Attribute 'xxxxx' has already been defined

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.