Skip to content

Commit

Permalink
Added demo with Stroke attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
balysv committed Sep 6, 2014
1 parent cb533f6 commit 6b43ebd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.balysv.materialmenu.demo.R;
import com.balysv.materialmenu.extras.abc.MaterialMenuIconCompat;

import static com.balysv.materialmenu.MaterialMenuDrawable.Stroke;
import static com.balysv.materialmenu.demo.BaseActivityHelper.generateState;
import static com.balysv.materialmenu.demo.BaseActivityHelper.intToState;

Expand All @@ -21,7 +22,7 @@ public class HomeIconActivity extends BaseActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
materialMenu = new MaterialMenuIconCompat(this, Color.WHITE);
materialMenu = new MaterialMenuIconCompat(this, Color.WHITE, Stroke.THIN);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.balysv.materialmenu.demo.R;
import com.balysv.materialmenu.extras.abs.MaterialMenuIconSherlock;

import static com.balysv.materialmenu.MaterialMenuDrawable.Stroke;
import static com.balysv.materialmenu.demo.BaseActivityHelper.generateState;
import static com.balysv.materialmenu.demo.BaseActivityHelper.intToState;

Expand All @@ -21,7 +22,7 @@ public class HomeIconActivity extends BaseActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
materialMenu = new MaterialMenuIconSherlock(this, Color.WHITE);
materialMenu = new MaterialMenuIconSherlock(this, Color.WHITE, Stroke.THIN);
}

@Override
Expand Down
1 change: 1 addition & 0 deletions demo/src/main/res/layout/demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
android:id="@+id/material_menu_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:strokeWidth="2"
app:color="#ffcc0000"
app:transformDuration="3000"
app:scale="@integer/demo_scale"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.balysv.materialmenu.MaterialMenuIcon;
import com.balysv.materialmenu.demo.R;

import static com.balysv.materialmenu.MaterialMenuDrawable.Stroke;
import static com.balysv.materialmenu.demo.BaseActivityHelper.generateState;
import static com.balysv.materialmenu.demo.BaseActivityHelper.intToState;

Expand All @@ -21,7 +22,7 @@ public class HomeIconActivity extends BaseActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
materialMenu = new MaterialMenuIcon(this, Color.WHITE);
materialMenu = new MaterialMenuIcon(this, Color.WHITE, Stroke.THIN);
}

@Override
Expand Down

0 comments on commit 6b43ebd

Please sign in to comment.