Skip to content

sgwhp/HexagonMenu

Repository files navigation

#HexagonMenu

HexagonMenu is an implementation of two designs from Dribbble Menu Concept (iOS) and Hexagonal flat menu.

Usage

1.About the position of menu item. Check out those coordinates in the following screenshot.

2.About gravity. The same with TextView unless it can not be top|bottom or left|right. Use match_parent instead. example:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:hex="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <cn.robust.hexagon.library.menu.HexagonMenu
        android:id="@+id/menu"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        hex:gravity="top|center_horizontal"
        hex:roundedCorner="true"
        android:background="@color/hexa_bg"
        android:padding="5dp" />

</FrameLayout>

3.For more details, just look at the sample project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages