{"action":"closed","issue":{"url":"https://api.github.com/repos/Clans/FloatingActionButton/issues/9","labels_url":"https://api.github.com/repos/Clans/FloatingActionButton/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Clans/FloatingActionButton/issues/9/comments","events_url":"https://api.github.com/repos/Clans/FloatingActionButton/issues/9/events","html_url":"https://github.com/Clans/FloatingActionButton/issues/9","id":66044645,"number":9,"title":"Issue with layout and centering multiple buttons","user":{"login":"tommytcchan","id":819117,"avatar_url":"https://avatars.githubusercontent.com/u/819117?v=3","gravatar_id":"","url":"https://api.github.com/users/tommytcchan","html_url":"https://github.com/tommytcchan","followers_url":"https://api.github.com/users/tommytcchan/followers","following_url":"https://api.github.com/users/tommytcchan/following{/other_user}","gists_url":"https://api.github.com/users/tommytcchan/gists{/gist_id}","starred_url":"https://api.github.com/users/tommytcchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tommytcchan/subscriptions","organizations_url":"https://api.github.com/users/tommytcchan/orgs","repos_url":"https://api.github.com/users/tommytcchan/repos","events_url":"https://api.github.com/users/tommytcchan/events{/privacy}","received_events_url":"https://api.github.com/users/tommytcchan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-03T01:06:00Z","updated_at":"2015-04-03T01:19:24Z","closed_at":"2015-04-03T01:19:24Z","body":"I'm using the example project and am having a bit of issue trying to center the buttons in the ```floating_menus_activit.xml```\r\n\r\nI've wrapped the menus in a RelativeLayout:\r\n\r\nhttp://screencloud.net/v/neqg\r\n\r\nbut the result doesn't really look good (only one of the buttons has been aligned center), even after specifying ```layout_centerHorizontal```\r\n\r\nhttp://screencloud.net/v/lVXF\r\n\r\nHere's my xml \r\n\r\n```\r\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<RelativeLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    xmlns:fab=\"http://schemas.android.com/apk/res-auto\"\r\n    xmlns:tools=\"http://schemas.android.com/tools\"\r\n    android:orientation=\"vertical\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"match_parent\">\r\n\r\n    <TextView\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"102dp\"\r\n        android:text=\"@string/lorem_ipsum\"\r\n        android:maxLines=\"3\"\r\n        android:ellipsize=\"end\"\r\n        android:textColor=\"@android:color/white\"\r\n        android:textSize=\"22sp\"\r\n        android:paddingTop=\"8dp\"\r\n        android:paddingRight=\"8dp\"\r\n        android:paddingLeft=\"60dp\"\r\n        android:fontFamily=\"sans-serif-light\"\r\n        android:background=\"@color/app_primary\"/>\r\n\r\n    <RelativeLayout\r\n            android:layout_width=\"fill_parent\"\r\n            android:layout_height=\"fill_parent\" android:layout_centerHorizontal=\"true\"\r\n            android:layout_alignParentTop=\"false\" android:gravity=\"right\">\r\n        <com.github.clans.fab.FloatingActionMenu\r\n            android:id=\"@+id/menu1\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\"\r\n            fab:menu_labels_ellipsize=\"end\"\r\n            fab:menu_labels_singleLine=\"true\" android:layout_centerHorizontal=\"true\">\r\n\r\n            <com.github.clans.fab.FloatingActionButton\r\n                android:id=\"@+id/fab1\"\r\n                android:layout_width=\"wrap_content\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:src=\"@drawable/ic_edit\"\r\n                fab:fab_size=\"mini\"\r\n                fab:fab_label=\"Menu item 1\" />\r\n\r\n            <com.github.clans.fab.FloatingActionButton\r\n                android:id=\"@+id/fab2\"\r\n                android:layout_width=\"wrap_content\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:src=\"@drawable/ic_edit\"\r\n                fab:fab_size=\"mini\"\r\n                fab:fab_label=\"Menu item 2\" />\r\n\r\n            <com.github.clans.fab.FloatingActionButton\r\n                android:id=\"@+id/fab3\"\r\n                android:layout_width=\"wrap_content\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:src=\"@drawable/ic_edit\"\r\n                fab:fab_size=\"mini\"\r\n                fab:fab_label=\"@string/lorem_ipsum\" />\r\n\r\n        </com.github.clans.fab.FloatingActionMenu>\r\n        <com.github.clans.fab.FloatingActionMenu\r\n            android:id=\"@+id/menu2\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:layout_alignParentBottom=\"false\"\r\n            fab:menu_labels_style=\"@style/MenuLabelsStyle\"\r\n            fab:menu_labels_showAnimation=\"@anim/jump_from_down\"\r\n            fab:menu_labels_hideAnimation=\"@anim/jump_to_down\"\r\n            fab:menu_animationDelayPerItem=\"0\"\r\n            fab:menu_shadowColor=\"#444\"\r\n            fab:menu_colorNormal=\"#FFB805\"\r\n            fab:menu_colorPressed=\"#F2AB00\"\r\n            fab:menu_colorRipple=\"#D99200\"\r\n            android:layout_centerHorizontal=\"true\">\r\n\r\n            <com.github.clans.fab.FloatingActionButton\r\n                android:id=\"@+id/fab12\"\r\n                android:layout_width=\"wrap_content\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:src=\"@drawable/ic_edit\"\r\n                fab:fab_label=\"Menu item 1\"\r\n                style=\"@style/MenuButtonsStyle\" />\r\n\r\n            <com.github.clans.fab.FloatingActionButton\r\n                android:id=\"@+id/fab22\"\r\n                android:layout_width=\"wrap_content\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:src=\"@drawable/ic_edit\"\r\n                fab:fab_label=\"Menu item 2\"\r\n                style=\"@style/MenuButtonsStyle\" />\r\n\r\n            <com.github.clans.fab.FloatingActionButton\r\n                android:id=\"@+id/fab32\"\r\n                android:layout_width=\"wrap_content\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:src=\"@drawable/ic_edit\"\r\n                fab:fab_label=\"@string/lorem_ipsum\"\r\n                style=\"@style/MenuButtonsStyle\" />\r\n\r\n        </com.github.clans.fab.FloatingActionMenu>\r\n        <com.github.clans.fab.FloatingActionMenu\r\n            android:id=\"@+id/menu3\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\"\r\n            fab:menu_colorNormal=\"#1565C0\"\r\n            fab:menu_colorPressed=\"#2272CD\"\r\n            fab:menu_colorRipple=\"#62B2FF\"\r\n            android:layout_centerHorizontal=\"true\">\r\n\r\n            <com.github.clans.fab.FloatingActionButton\r\n                android:id=\"@+id/fab13\"\r\n                android:layout_width=\"wrap_content\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:src=\"@drawable/ic_star\"\r\n                style=\"@style/MenuButtonsSmall\" />\r\n\r\n            <com.github.clans.fab.FloatingActionButton\r\n                android:id=\"@+id/fab23\"\r\n                android:layout_width=\"wrap_content\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:src=\"@drawable/ic_star\"\r\n                style=\"@style/MenuButtonsSmall\" />\r\n\r\n            <com.github.clans.fab.FloatingActionButton\r\n                android:id=\"@+id/fab33\"\r\n                android:layout_width=\"wrap_content\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:src=\"@drawable/ic_star\"\r\n                style=\"@style/MenuButtonsSmall\" />\r\n\r\n        </com.github.clans.fab.FloatingActionMenu>\r\n        <com.github.clans.fab.FloatingActionMenu\r\n            android:id=\"@+id/menu4\"\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\"\r\n            fab:menu_icon=\"@drawable/ic_star\"\r\n            fab:menu_animationDelayPerItem=\"0\"\r\n            fab:menu_colorNormal=\"#43A047\"\r\n            fab:menu_colorPressed=\"#2E7D32\"\r\n            fab:menu_colorRipple=\"#1B5E20\"\r\n            fab:menu_labels_maxLines=\"2\"\r\n            fab:menu_labels_ellipsize=\"end\" android:layout_centerHorizontal=\"true\">\r\n\r\n            <com.github.clans.fab.FloatingActionButton\r\n                android:layout_width=\"wrap_content\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:src=\"@drawable/ic_edit\"\r\n                fab:fab_label=\"Menu item 1\"\r\n                style=\"@style/MenuButtonsSmall.Green\" />\r\n\r\n            <com.github.clans.fab.FloatingActionButton\r\n                android:layout_width=\"wrap_content\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:src=\"@drawable/ic_edit\"\r\n                fab:fab_label=\"Menu item 2\"\r\n                style=\"@style/MenuButtonsSmall.Green\" />\r\n\r\n            <com.github.clans.fab.FloatingActionButton\r\n                android:layout_width=\"wrap_content\"\r\n                android:layout_height=\"wrap_content\"\r\n                android:src=\"@drawable/ic_edit\"\r\n                fab:fab_label=\"@string/lorem_ipsum\"\r\n                style=\"@style/MenuButtonsSmall.Green\" />\r\n\r\n        </com.github.clans.fab.FloatingActionMenu>\r\n    </RelativeLayout>\r\n\r\n</RelativeLayout>\r\n```"}}