use of no.agens.depth.lib.MaterialMenuDrawable in project Depth-LIB-Android- by danielzeller.
the class WaterFragment method setupMenuButton.
private void setupMenuButton() {
ImageView menu = (ImageView) root.findViewById(R.id.menu);
menu.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (!((RootActivity) getActivity()).isMenuVisible)
((RootActivity) getActivity()).showMenu();
else
((RootActivity) getActivity()).onBackPressed();
}
});
menuIcon = new MaterialMenuDrawable(getActivity(), Color.WHITE, MaterialMenuDrawable.Stroke.THIN, TRANSFORM_DURATION);
menu.setImageDrawable(menuIcon);
}
use of no.agens.depth.lib.MaterialMenuDrawable in project Depth-LIB-Android- by danielzeller.
the class WindFragment method setupMenuButton.
private void setupMenuButton() {
ImageView menu = (ImageView) root.findViewById(R.id.menu);
menu.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (!((RootActivity) getActivity()).isMenuVisible)
((RootActivity) getActivity()).showMenu();
else
getActivity().onBackPressed();
}
});
menuIcon = new MaterialMenuDrawable(getActivity(), Color.WHITE, MaterialMenuDrawable.Stroke.THIN, WaterFragment.TRANSFORM_DURATION);
menu.setImageDrawable(menuIcon);
}
use of no.agens.depth.lib.MaterialMenuDrawable in project Depth-LIB-Android- by danielzeller.
the class PlayGroundActivity method setupMenuButton.
private void setupMenuButton() {
ImageView menu = (ImageView) findViewById(R.id.menu);
menu.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
finish();
}
});
MaterialMenuDrawable menuIcon = new MaterialMenuDrawable(this, Color.WHITE, MaterialMenuDrawable.Stroke.THIN, WaterFragment.TRANSFORM_DURATION);
menu.setImageDrawable(menuIcon);
menuIcon.setIconState(MaterialMenuDrawable.IconState.ARROW);
}
Aggregations