Search in sources :

Example 1 with MaterialMenuDrawable

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);
}
Also used : MaterialMenuDrawable(no.agens.depth.lib.MaterialMenuDrawable) ImageView(android.widget.ImageView) ImageView(android.widget.ImageView) View(android.view.View)

Example 2 with MaterialMenuDrawable

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);
}
Also used : MaterialMenuDrawable(no.agens.depth.lib.MaterialMenuDrawable) ImageView(android.widget.ImageView) ImageView(android.widget.ImageView) View(android.view.View)

Example 3 with MaterialMenuDrawable

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);
}
Also used : MaterialMenuDrawable(no.agens.depth.lib.MaterialMenuDrawable) ImageView(android.widget.ImageView) ImageView(android.widget.ImageView) View(android.view.View)

Aggregations

View (android.view.View)3 ImageView (android.widget.ImageView)3 MaterialMenuDrawable (no.agens.depth.lib.MaterialMenuDrawable)3