From 2a2b688781f066d92f3c27492e04f1f862e0d955 Mon Sep 17 00:00:00 2001 From: ImangazalievM Date: Mon, 11 Sep 2017 17:54:35 +0300 Subject: [PATCH] Some code formatting --- .../circlemenu/sample/MainActivity.java | 2 +- app/src/main/res/layout/activity_main.xml | 12 +++++------- library/src/main/res/animator/close_to_menu.xml | 14 -------------- library/src/main/res/animator/menu_to_close.xml | 14 -------------- 4 files changed, 6 insertions(+), 36 deletions(-) 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 @@ -