Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit

Permalink
Fixes saurabharora90#10. Allow margin configuration for the menu. Def…
Browse files Browse the repository at this point in the history
…ault to 16dp
  • Loading branch information
saurabharora90 committed Apr 15, 2016
1 parent e827561 commit f20f019
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private void init(TypedArray attr) {
else
mQuadrantAngle = NEGATIVE_QUADRANT;

menuMargin = resources.getDimensionPixelSize(R.dimen.fab_margin);
menuMargin = attr.getDimensionPixelSize(R.styleable.ArcMenu_menu_margin, resources.getDimensionPixelSize(R.dimen.fab_margin));
}

/**
Expand Down
1 change: 1 addition & 0 deletions library/src/main/res/values/attr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<attr name="menu_color" format="reference|color"/>
<attr name="menu_ripple_color" format="color"/>
<attr name="menu_radius" format="dimension"/>
<attr name="menu_margin" format="dimension"/>
<attr name="menu_open" format="enum">
<enum name="arc_left" value="0"/>
<enum name="arc_right" value="1"/>
Expand Down

0 comments on commit f20f019

Please sign in to comment.