Skip to content

ProgressBar for Glass GDK Menu Cards that look and work exactly like the ones Google Use.

Notifications You must be signed in to change notification settings

w9jds/GDK-ProgressBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

GDK-ProgressBar

ProgressBar for Glass GDK Menu Cards that look and work exactly like the ones Google Use.

Examples:

Indeterminate

Indeterminate Progress

Progress

Indeterminate Progress

To show the indeterminate progressbar:


    mSliderView.startIndeterminate();

To get the setting time create a call like this:


    mSliderView.startProgress(1000, new Animator.AnimatorListener()
    {
        @Override
        public void onAnimationStart(Animator animation)
        { 
            //Create listener for swipe down
        }
    
        @Override
        public void onAnimationEnd(Animator animation)
        {
            setContentView(R.layout.menu_layout);
            ((ImageView)findViewById(R.id.icon)).setImageResource(R.drawable.ic_done_50);
            ((TextView)findViewById(R.id.label)).setText("Deleted");
    
            maManager.playSoundEffect(Sounds.SUCCESS);
    
            new Handler().postDelayed(new Runnable()
            {
                public void run()
                {
                    CreatePictureView();
                }
            }, 1000);
        }
    
        @Override
        public void onAnimationCancel(Animator animation)
        {
    
        }
    
        @Override
        public void onAnimationRepeat(Animator animation)
        {
    
        }
    });

Looks like this

About

ProgressBar for Glass GDK Menu Cards that look and work exactly like the ones Google Use.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published