diff --git a/app/src/main/java/com/imangazaliev/circlemenu/sample/MainActivity.java b/app/src/main/java/com/imangazaliev/circlemenu/sample/MainActivity.java index 3ad539a..07abb3d 100644 --- a/app/src/main/java/com/imangazaliev/circlemenu/sample/MainActivity.java +++ b/app/src/main/java/com/imangazaliev/circlemenu/sample/MainActivity.java @@ -15,7 +15,7 @@ protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); - CircleMenu circleMenu = (CircleMenu) findViewById(R.id.circleMenu); + CircleMenu circleMenu = (CircleMenu) findViewById(R.id.circle_menu); circleMenu.setOnItemClickListener(new CircleMenu.OnItemClickListener() { @Override public void onItemClick(CircleMenuButton menuButton) { diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index c947692..eaad489 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -2,15 +2,13 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" - android:background="#212121" - > + android:background="#212121"> + android:layout_centerInParent="true"> + app:icon="@drawable/ic_favorite" /> + diff --git a/library/src/main/res/animator/close_to_menu.xml b/library/src/main/res/animator/close_to_menu.xml index d27ee44..a6ae4f0 100644 --- a/library/src/main/res/animator/close_to_menu.xml +++ b/library/src/main/res/animator/close_to_menu.xml @@ -1,18 +1,4 @@ - diff --git a/library/src/main/res/animator/menu_to_close.xml b/library/src/main/res/animator/menu_to_close.xml index f590b36..81358bb 100644 --- a/library/src/main/res/animator/menu_to_close.xml +++ b/library/src/main/res/animator/menu_to_close.xml @@ -1,18 +1,4 @@ -