https://github.com/w9jds/gdk-progressbar
ProgressBar for Glass GDK Menu Cards that look and work exactly like the ones Google Use.
https://github.com/w9jds/gdk-progressbar
Last synced: about 15 hours ago
JSON representation
ProgressBar for Glass GDK Menu Cards that look and work exactly like the ones Google Use.
- Host: GitHub
- URL: https://github.com/w9jds/gdk-progressbar
- Owner: w9jds
- Created: 2014-01-09T04:11:14.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-11T05:02:36.000Z (almost 11 years ago)
- Last Synced: 2024-05-16T01:11:29.475Z (12 months ago)
- Language: Java
- Size: 188 KB
- Stars: 30
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
GDK-ProgressBar
===============ProgressBar for Glass GDK Menu Cards that look and work exactly like the ones Google Use.
Examples:
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