{"action":"created","issue":{"url":"https://api.github.com/repos/ApmeM/android-flowlayout/issues/36","labels_url":"https://api.github.com/repos/ApmeM/android-flowlayout/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/ApmeM/android-flowlayout/issues/36/comments","events_url":"https://api.github.com/repos/ApmeM/android-flowlayout/issues/36/events","html_url":"https://github.com/ApmeM/android-flowlayout/issues/36","id":55450474,"number":36,"title":"It seems  the lib don't  support  added dynamically","user":{"login":"zhumingu","id":8622292,"avatar_url":"https://avatars.githubusercontent.com/u/8622292?v=3","gravatar_id":"","url":"https://api.github.com/users/zhumingu","html_url":"https://github.com/zhumingu","followers_url":"https://api.github.com/users/zhumingu/followers","following_url":"https://api.github.com/users/zhumingu/following{/other_user}","gists_url":"https://api.github.com/users/zhumingu/gists{/gist_id}","starred_url":"https://api.github.com/users/zhumingu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhumingu/subscriptions","organizations_url":"https://api.github.com/users/zhumingu/orgs","repos_url":"https://api.github.com/users/zhumingu/repos","events_url":"https://api.github.com/users/zhumingu/events{/privacy}","received_events_url":"https://api.github.com/users/zhumingu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-26T06:28:39Z","updated_at":"2015-06-03T09:08:14Z","closed_at":null,"body":"Such as the title"},"comment":{"url":"https://api.github.com/repos/ApmeM/android-flowlayout/issues/comments/108258219","html_url":"https://github.com/ApmeM/android-flowlayout/issues/36#issuecomment-108258219","issue_url":"https://api.github.com/repos/ApmeM/android-flowlayout/issues/36","id":108258219,"user":{"login":"loolooii","id":1718021,"avatar_url":"https://avatars.githubusercontent.com/u/1718021?v=3","gravatar_id":"","url":"https://api.github.com/users/loolooii","html_url":"https://github.com/loolooii","followers_url":"https://api.github.com/users/loolooii/followers","following_url":"https://api.github.com/users/loolooii/following{/other_user}","gists_url":"https://api.github.com/users/loolooii/gists{/gist_id}","starred_url":"https://api.github.com/users/loolooii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loolooii/subscriptions","organizations_url":"https://api.github.com/users/loolooii/orgs","repos_url":"https://api.github.com/users/loolooii/repos","events_url":"https://api.github.com/users/loolooii/events{/privacy}","received_events_url":"https://api.github.com/users/loolooii/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T09:08:14Z","updated_at":"2015-06-03T09:08:14Z","body":"Just add margins dynamically to whatever view you are using in your FlowLayout:\r\n\r\n```\r\nfinal Button button = new Button(this);\r\nFlowLayout.LayoutParams params= new FlowLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,\r\n                            ViewGroup.LayoutParams.WRAP_CONTENT);\r\nparams.setMargins(0, 20, 20, 0);\r\nbutton.setLayoutParams(params);\r\n```\r\n\r\nThis works for me."}}