{"action":"created","issue":{"url":"https://api.github.com/repos/jcesarmobile/plusOneButtonPlugin/issues/5","repository_url":"https://api.github.com/repos/jcesarmobile/plusOneButtonPlugin","labels_url":"https://api.github.com/repos/jcesarmobile/plusOneButtonPlugin/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/jcesarmobile/plusOneButtonPlugin/issues/5/comments","events_url":"https://api.github.com/repos/jcesarmobile/plusOneButtonPlugin/issues/5/events","html_url":"https://github.com/jcesarmobile/plusOneButtonPlugin/issues/5","id":140429046,"number":5,"title":"A way to center it.","user":{"login":"rodrigograca31","id":1134310,"avatar_url":"https://avatars2.githubusercontent.com/u/1134310?v=4","gravatar_id":"","url":"https://api.github.com/users/rodrigograca31","html_url":"https://github.com/rodrigograca31","followers_url":"https://api.github.com/users/rodrigograca31/followers","following_url":"https://api.github.com/users/rodrigograca31/following{/other_user}","gists_url":"https://api.github.com/users/rodrigograca31/gists{/gist_id}","starred_url":"https://api.github.com/users/rodrigograca31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodrigograca31/subscriptions","organizations_url":"https://api.github.com/users/rodrigograca31/orgs","repos_url":"https://api.github.com/users/rodrigograca31/repos","events_url":"https://api.github.com/users/rodrigograca31/events{/privacy}","received_events_url":"https://api.github.com/users/rodrigograca31/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-03-12T23:54:33Z","updated_at":"2018-02-28T23:08:41Z","closed_at":"2018-02-28T23:08:41Z","author_association":"CONTRIBUTOR","body":"I was thinking I could a `div` 1px wide and then use:\n\n``` javascript\nposition: {\n    x: $(\".div\").offset().left,\n    y: $(\".div\").offset().top\n}\n```\n\nto place the +1 in the same place as that `div`... This didn't worked...\nSo, now I was trying to make it \"full width\" (`FILL_PARENT`) and centering it by changing line 85 from:\n\n``` java\ncordova.getActivity().addContentView(mPlusOneButton,new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT,RelativeLayout.LayoutParams.WRAP_CONTENT));\n```\n\nto\n\n``` java\ncordova.getActivity().addContentView(mPlusOneButton,new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT,RelativeLayout.LayoutParams.WRAP_CONTENT));\n```\n\nThat works, but the +1 is not centered....\nIf we had the xml we could use:\n\n``` xml\nandroid:layout_centerHorizontal=\"true\"\nandroid:layout_centerInParent=\"true\"\n```\n\nSo, I got this working in android studio like this: (3rd line)\n\n``` java\nmPlusOneButton.setSize(PlusOneButton.SIZE_TALL);\nmPlusOneButton.setAnnotation(PlusOneButton.ANNOTATION_BUBBLE);\n((RelativeLayout.LayoutParams) mPlusOneButton.getLayoutParams()).addRule(RelativeLayout.CENTER_HORIZONTAL);\n```\n\nBut I'm not able to make this work on this plugin.....\n\n@jcesarmobile Any ideias?\n"},"comment":{"url":"https://api.github.com/repos/jcesarmobile/plusOneButtonPlugin/issues/comments/369415855","html_url":"https://github.com/jcesarmobile/plusOneButtonPlugin/issues/5#issuecomment-369415855","issue_url":"https://api.github.com/repos/jcesarmobile/plusOneButtonPlugin/issues/5","id":369415855,"user":{"login":"jcesarmobile","id":1637892,"avatar_url":"https://avatars3.githubusercontent.com/u/1637892?v=4","gravatar_id":"","url":"https://api.github.com/users/jcesarmobile","html_url":"https://github.com/jcesarmobile","followers_url":"https://api.github.com/users/jcesarmobile/followers","following_url":"https://api.github.com/users/jcesarmobile/following{/other_user}","gists_url":"https://api.github.com/users/jcesarmobile/gists{/gist_id}","starred_url":"https://api.github.com/users/jcesarmobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcesarmobile/subscriptions","organizations_url":"https://api.github.com/users/jcesarmobile/orgs","repos_url":"https://api.github.com/users/jcesarmobile/repos","events_url":"https://api.github.com/users/jcesarmobile/events{/privacy}","received_events_url":"https://api.github.com/users/jcesarmobile/received_events","type":"User","site_admin":false},"created_at":"2018-02-28T23:08:41Z","updated_at":"2018-02-28T23:08:41Z","author_association":"OWNER","body":"closing as the plugin is now deprecated"}}
{"actor":{"display_login":"jcesarmobile"}}