Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<com.github.clans.fab.FloatingActionMenu
android:id="@+id/social_floating_menu"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="11dp"
android:layout_marginLeft="11dp"
android:layout_marginRight="11dp"
fab:menu_animationDelayPerItem="55"
fab:menu_backgroundColor="@android:color/transparent"
fab:menu_buttonSpacing="0dp"
fab:menu_colorNormal="#da3c2f"
fab:menu_colorPressed="#dc4b3f"
fab:menu_colorRipple="#99d4d4d4"
fab:menu_fab_label="Floating Social Icons"
fab:menu_fab_size="normal"
fab:menu_icon="@drawable/fab_add"
fab:menu_labels_colorNormal="#333"
fab:menu_labels_colorPressed="#444"
fab:menu_labels_colorRipple="#66efecec"
fab:menu_labels_cornerRadius="3dp"
fab:menu_labels_ellipsize="none"
fab:menu_labels_hideAnimation="@anim/fab_slide_out_to_right"
fab:menu_labels_margin="0dp"
fab:menu_labels_maxLines="-1"
fab:menu_labels_padding="8dp"
fab:menu_labels_position="left"
fab:menu_labels_showAnimation="@anim/fab_slide_in_from_right"
fab:menu_labels_showShadow="true"
fab:menu_labels_singleLine="false"
fab:menu_labels_textColor="#f2f1f1"
fab:menu_labels_textSize="15sp"
fab:menu_openDirection="up"
fab:menu_shadowColor="#66aff198"
fab:menu_shadowRadius="4dp"
fab:menu_shadowXOffset="1dp"
fab:menu_shadowYOffset="4dp"
fab:menu_showShadow="true">
<com.github.clans.fab.FloatingActionButton
android:id="@+id/floating_facebook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/action_fb"
fab:fab_size="mini" />
<com.github.clans.fab.FloatingActionButton
android:id="@+id/floating_twitter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/action_tw"
fab:fab_size="mini" />
<com.github.clans.fab.FloatingActionButton
android:id="@+id/floating_linkdin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/action_in"
fab:fab_size="mini" />
<com.github.clans.fab.FloatingActionButton
android:id="@+id/floating_google_plus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/action_g_plus"
fab:fab_size="mini" />
<com.github.clans.fab.FloatingActionButton
android:id="@+id/floating_instagram"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/action_insta"
fab:fab_size="mini" />
<com.github.clans.fab.FloatingActionButton
android:id="@+id/floating_youtube"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/action_yt"
fab:fab_size="mini" />
</com.github.clans.fab.FloatingActionMenu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment