GithubHelp home page GithubHelp logo

circlelayout's People

Contributors

dmitry-zaitsev avatar fluckysan avatar

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

circlelayout's Issues

Center in layout

Hi, great work with CircleLayout! I am wondering is there a way to place some view in centre of layout and then surround it with other elements?

Reduce memory usage

Is it possible to change this control in ways that uses less memory? Thanks!

image

Inflating error

Hello Dmitry,

First Many thanks for this important library, i really needed it ..
But seems i am missing something cause i am getting an inflating error :(
I followed the steps exactly, and checked your example too.. Can't find what is wrong ..
I saw another issue where you replied it might be an issue in manifest file, but i can't see any special line added to the example manifest file ..
Would you kindly help me?

android.view.InflateException: Binary XML file line #29: Error inflating class ru.biovamp.widget.CircleLayout

and that is line 29

<ru.biovamp.widget.CircleLayout

Thanks.

circle view

hi is it possible to create a view like this from your library?
untitled

Is there a rotation listener?

Very nice library. I would like to ask if this layout has a rotation listener. For example, I have 4 view and I swipe my fingers on the screen, the layout should perform a form of rotation animation.

Can we change the childitem's background programmatically?

Hi!
Thanks for your awesome lib. But I have an issue with it.
In the childItem's onclicklistener event, I can't change its background, even I can show a Toast message or set text to another view.
I also tried childItem.invalidate() and childItem.bringToFront() but still didn't work.
Hope you can help soon.

Error inflating class

I am newbie of Android. I have completed this lesson
http://developer.android.com/training/basics/firstapp/index.html

and trying to change layout to the circle one. Maybe I am missing something trivial.

I have imported the source to Eclipse, set the CircleLayout project as library and specified that as referenced library in MyProject.
http://developer.android.com/tools/projects/projects-eclipse.html#ReferencingLibraryProject

In AndroidManifest.xml I have added

<activity
     android:name="ru.biovamp.widget.CircleLayout">
</activity>

activity_main.xml

<?xml version="1.0" encoding="utf-8"?>
<ru.biovamp.widget.CircleLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      xmlns:app="http://schemas.android.com/apk/res/org/myproject/client/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@android:color/white"
      >

    <!-- app:angleOffset="90.0" -->

    <EditText android:id="@+id/edit_message"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:hint="@string/edit_message" />

</ru.biovamp.widget.CircleLayout>

from logcat

02-26 21:04:11.060: E/AndroidRuntime(608): FATAL EXCEPTION: main
02-26 21:04:11.060: E/AndroidRuntime(608): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.myproject.client.android/org.myproject.client.android.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class ru.biovamp.widget.CircleLayout
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1955)
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980)
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.app.ActivityThread.access$600(ActivityThread.java:122)
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.os.Handler.dispatchMessage(Handler.java:99)
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.os.Looper.loop(Looper.java:137)
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.app.ActivityThread.main(ActivityThread.java:4340)
02-26 21:04:11.060: E/AndroidRuntime(608):  at java.lang.reflect.Method.invokeNative(Native Method)
02-26 21:04:11.060: E/AndroidRuntime(608):  at java.lang.reflect.Method.invoke(Method.java:511)
02-26 21:04:11.060: E/AndroidRuntime(608):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-26 21:04:11.060: E/AndroidRuntime(608):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
02-26 21:04:11.060: E/AndroidRuntime(608):  at dalvik.system.NativeStart.main(Native Method)
02-26 21:04:11.060: E/AndroidRuntime(608): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class ru.biovamp.widget.CircleLayout
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.view.LayoutInflater.createView(LayoutInflater.java:606)
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:680)
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
02-26 21:04:11.060: E/AndroidRuntime(608):  at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.app.Activity.setContentView(Activity.java:1835)
02-26 21:04:11.060: E/AndroidRuntime(608):  at org.myproject.client.android.MainActivity.onCreate(MainActivity.java:16)
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.app.Activity.performCreate(Activity.java:4465)
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1919)
02-26 21:04:11.060: E/AndroidRuntime(608):  ... 11 more
02-26 21:04:11.060: E/AndroidRuntime(608): Caused by: java.lang.reflect.InvocationTargetException
02-26 21:04:11.060: E/AndroidRuntime(608):  at java.lang.reflect.Constructor.constructNative(Native Method)
02-26 21:04:11.060: E/AndroidRuntime(608):  at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
02-26 21:04:11.060: E/AndroidRuntime(608):  at android.view.LayoutInflater.createView(LayoutInflater.java:586)
02-26 21:04:11.060: E/AndroidRuntime(608):  ... 21 more
02-26 21:04:11.060: E/AndroidRuntime(608): Caused by: java.lang.NoClassDefFoundError: ru.biovamp.widget.R$styleable
02-26 21:04:11.060: E/AndroidRuntime(608):  at ru.biovamp.widget.CircleLayout.<init>(CircleLayout.java:87)
02-26 21:04:11.060: E/AndroidRuntime(608):  ... 24 more
02-26 21:09:11.244: I/Process(608): Sending signal. PID: 608 SIG: 9

ImageButton can't update image resource

I can add image in imagebutton src
but it can't be update
for example:
I put the image resource in layout.xml,and I set image resource in java ,it will not update button image

Clipping of view elements inside when they're circles

Thanks for this great library! Just what I needed. But, I'm facing an issue when I'm trying to place 5 circles in a circle using your CircleLayout. Have attached the screenshot.
screenshot_2014-04-12-00-22-51

My layout.xml-

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/com.styledotme.one"
android:id="@+id/themepopup"
android:layout_width="fill_parent"
android:layout_height="fill_parent"

<com.styledotme.one.CircleLayout
    android:id="@+id/circlecolortap"
    android:layout_width="match_parent"
    android:layout_gravity="center_horizontal|center_vertical"
    android:layout_height="match_parent"
    app:angleOffset="40.0" >

    <View
        android:id="@+id/pinkthemetile"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@drawable/circle_pink"
        android:tag="PinkTheme" />

    <View
        android:id="@+id/bluethemetile"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@drawable/circle_blue"
        android:tag="BlueTheme" />

    <View
        android:id="@+id/greenthemetile"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@drawable/circle_green"
        android:tag="GreenTheme" />

    <View
        android:id="@+id/orangethemetile"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@drawable/circle_orange"
        android:tag="OrangeTheme" />

    <View
        android:id="@+id/redthemetile"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@drawable/circle_red"
        android:tag="RedTheme" />
</com.styledotme.one.CircleLayout>

One of the drawables used for the cirlces-
reddrawable

and that's about it! the rightmost child circle is clipping no matter what I tried. (margin, change size to smaller than parent, etc) Only option seems to be to reduce the size of the 5 circles but it makes them aesthetically too small to accept.

Thanks!

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.