{"action":"created","issue":{"url":"https://api.github.com/repos/AigeStudio/WheelPicker/issues/31","repository_url":"https://api.github.com/repos/AigeStudio/WheelPicker","labels_url":"https://api.github.com/repos/AigeStudio/WheelPicker/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/AigeStudio/WheelPicker/issues/31/comments","events_url":"https://api.github.com/repos/AigeStudio/WheelPicker/issues/31/events","html_url":"https://github.com/AigeStudio/WheelPicker/issues/31","id":166540395,"number":31,"title":" divide by zero trying to change item space and size","user":{"login":"yamelkaya","id":2253928,"avatar_url":"https://avatars.githubusercontent.com/u/2253928?v=3","gravatar_id":"","url":"https://api.github.com/users/yamelkaya","html_url":"https://github.com/yamelkaya","followers_url":"https://api.github.com/users/yamelkaya/followers","following_url":"https://api.github.com/users/yamelkaya/following{/other_user}","gists_url":"https://api.github.com/users/yamelkaya/gists{/gist_id}","starred_url":"https://api.github.com/users/yamelkaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamelkaya/subscriptions","organizations_url":"https://api.github.com/users/yamelkaya/orgs","repos_url":"https://api.github.com/users/yamelkaya/repos","events_url":"https://api.github.com/users/yamelkaya/events{/privacy}","received_events_url":"https://api.github.com/users/yamelkaya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-20T09:40:47Z","updated_at":"2016-07-20T10:13:35Z","closed_at":null,"body":"I am trying to extend your wheel picker and change item spacing and text size. \r\n\r\nThis case work **OK**: \r\n\r\n`setItemSpace(18);\r\nsetItemTextSize(54);`\r\n\r\n **java.lang.ArithmeticException: divide by zero at com.aigestudio.wheelpicker.WheelPicker.onDraw(WheelPicker.java:505)** : \r\n\r\n`setItemSpace(27);\r\nsetItemTextSize(54);`\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/AigeStudio/WheelPicker/issues/comments/233909235","html_url":"https://github.com/AigeStudio/WheelPicker/issues/31#issuecomment-233909235","issue_url":"https://api.github.com/repos/AigeStudio/WheelPicker/issues/31","id":233909235,"user":{"login":"yamelkaya","id":2253928,"avatar_url":"https://avatars.githubusercontent.com/u/2253928?v=3","gravatar_id":"","url":"https://api.github.com/users/yamelkaya","html_url":"https://github.com/yamelkaya","followers_url":"https://api.github.com/users/yamelkaya/followers","following_url":"https://api.github.com/users/yamelkaya/following{/other_user}","gists_url":"https://api.github.com/users/yamelkaya/gists{/gist_id}","starred_url":"https://api.github.com/users/yamelkaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamelkaya/subscriptions","organizations_url":"https://api.github.com/users/yamelkaya/orgs","repos_url":"https://api.github.com/users/yamelkaya/repos","events_url":"https://api.github.com/users/yamelkaya/events{/privacy}","received_events_url":"https://api.github.com/users/yamelkaya/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T10:13:35Z","updated_at":"2016-07-20T10:13:35Z","body":"I use Expandable Layout (https://github.com/AAkira/ExpandableLayout) \r\n\r\nHere markup structure example:\r\n\r\n ```\r\n <com.github.aakira.expandablelayout.ExpandableLinearLayout>\r\n\t<LinearLayout>\r\n\t\t<RelativeLayout>\r\n\t\t\t<LinearLayout>\r\n\t\t\t\t<CustomizedWheelPicker/>\r\n\t\t\t\t<CustomizedWheelPicker/>\r\n\t\t\t\t<CustomizedWheelPicker/>\r\n\t\t        </LinearLayout>\r\n\t\t</RelativeLayout>\r\n\t\t...\r\n        </LinearLayout>\r\n  <com.github.aakira.expandablelayout.ExpandableLinearLayout>\r\n```\r\n\r\nand code: \r\n\r\n```\r\npublic class CustomizedWheelPicker extends WheelPicker {\r\n    public CustomizedWheelPicker(Context context) {\r\n        super(context);\r\n        setDefaults();\r\n    }\r\n\r\n    public CustomizedWheelPicker(Context context, AttributeSet attributeSet){\r\n        super(context,attributeSet);\r\n        setDefaults();\r\n    }\r\n\r\n    private void setDefaults(){\r\n        setCurved(true);\r\n        setItemTextColor(ContextCompat.getColor(getContext(),R.color.colorPrimaryText));\r\n        setSelectedItemTextColor(ContextCompat.getColor(getContext(),R.color.colorPrimaryText));\r\n        setItemSpace(27);\r\n        setItemTextSize(54);\r\n        setAtmospheric(true);\r\n    }\r\n}\r\n```\r\n\r\nThe whole code from project a little complicated but if you won't be able to reproduce I'll try to simplify it. "}}
{"actor":{"display_login":"yamelkaya"}}