Skip to content

Commit

Permalink
Merge branch 'feature/refactoring' into 'master'
Browse files Browse the repository at this point in the history
Rename methods

See merge request !8
  • Loading branch information
Irina Galata committed Jun 30, 2017
2 parents 97cc488 + 03dc792 commit 18951aa
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import android.util.Log
import android.view.Menu
import android.widget.Toast
import com.facebook.drawee.backends.pipeline.Fresco
import com.yalantis.colormatchtabs.colormatchtabs.MenuToggleListener
import com.yalantis.colormatchtabs.colormatchtabs.menu.MenuToggleListener
import com.yalantis.colormatchtabs.colormatchtabs.adapter.ColorTabAdapter
import com.yalantis.colormatchtabs.colormatchtabs.listeners.ColorTabLayoutOnPageChangeListener
import com.yalantis.colormatchtabs.colormatchtabs.listeners.OnArcMenuListener
Expand Down Expand Up @@ -41,7 +41,6 @@ class MainActivity : AppCompatActivity() {

viewPager.adapter = ColorTabsAdapter(supportFragmentManager, colorMatchTabLayout.count())
viewPager.addOnPageChangeListener(ColorTabLayoutOnPageChangeListener(colorMatchTabLayout))
//TODO think how change this ugly methods!!
viewPager.setBackgroundColor(ContextCompat.getColor(this, R.color.colorGreen))
viewPager.background.alpha = 128
colorMatchTabLayout.addArcMenu(arcMenu)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import android.util.Log
import android.view.WindowManager
import android.widget.HorizontalScrollView
import android.widget.LinearLayout
import com.yalantis.colormatchtabs.colormatchtabs.MenuToggleListener
import com.yalantis.colormatchtabs.colormatchtabs.menu.MenuToggleListener
import com.yalantis.colormatchtabs.colormatchtabs.R
import com.yalantis.colormatchtabs.colormatchtabs.listeners.OnColorTabSelectedListener
import com.yalantis.colormatchtabs.colormatchtabs.menu.ArcMenu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import android.view.Gravity
import android.widget.LinearLayout
import com.yalantis.colormatchtabs.colormatchtabs.Constant
import com.yalantis.colormatchtabs.colormatchtabs.Constant.Companion.ANIMATION_DURATION
import com.yalantis.colormatchtabs.colormatchtabs.MenuToggleListener
import com.yalantis.colormatchtabs.colormatchtabs.menu.MenuToggleListener
import com.yalantis.colormatchtabs.colormatchtabs.R
import com.yalantis.colormatchtabs.colormatchtabs.utils.InvalidNumberOfTabs
import com.yalantis.colormatchtabs.colormatchtabs.utils.InvalidNumberOfTabsExeption
import com.yalantis.colormatchtabs.colormatchtabs.utils.getDimen
import com.yalantis.colormatchtabs.colormatchtabs.utils.getDimenToFloat

Expand Down Expand Up @@ -149,7 +149,7 @@ class SlidingTabStripLayout : LinearLayout, MenuToggleListener {
if ((parent as ColorMatchTabLayout).tabs.count() <= INVALID_TABS_AMOUNT && (parent as ColorMatchTabLayout).tabs.count() > 2) {
animateIconTabs(0f, (height * 2).toFloat())
} else {
throw InvalidNumberOfTabs()
throw InvalidNumberOfTabsExeption()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import android.view.animation.AnimationUtils
import android.widget.FrameLayout
import com.yalantis.colormatchtabs.colormatchtabs.Constant
import com.yalantis.colormatchtabs.colormatchtabs.Constant.Companion.ANIMATION_DURATION
import com.yalantis.colormatchtabs.colormatchtabs.MenuToggleListener
import com.yalantis.colormatchtabs.colormatchtabs.menu.MenuToggleListener
import com.yalantis.colormatchtabs.colormatchtabs.R
import com.yalantis.colormatchtabs.colormatchtabs.listeners.OnArcMenuListener
import com.yalantis.colormatchtabs.colormatchtabs.model.CircleSubMenu
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.yalantis.colormatchtabs.colormatchtabs
package com.yalantis.colormatchtabs.colormatchtabs.menu

/**
* Created by anna on 23.05.17.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package com.yalantis.colormatchtabs.colormatchtabs.utils
/**
* Created by anna on 24.05.17.
*/
class InvalidNumberOfTabs : Exception() {
class InvalidNumberOfTabsExeption : Exception() {
override val message: String? = "Your should add more than three and less then six tabs to use ArcMenu"
}

0 comments on commit 18951aa

Please sign in to comment.