ProgressBar for Glass GDK


License

License

GroupId

GroupId

com.github.prt2121
ArtifactId

ArtifactId

library
Last Version

Last Version

0.9
Release Date

Release Date

Type

Type

jar
Description

Description

ProgressBar for Glass GDK
ProgressBar for Glass GDK
Project URL

Project URL

https://github.com/prt2121/glass-gdk-progressbar
Source Code Management

Source Code Management

https://github.com/prt2121/glass-gdk-progressbar

Download library

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.prt2121/library/ -->
<dependency>
    <groupId>com.github.prt2121</groupId>
    <artifactId>library</artifactId>
    <version>0.9</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.prt2121/library/
implementation 'com.github.prt2121:library:0.9'
// https://jarcasting.com/artifacts/com.github.prt2121/library/
implementation ("com.github.prt2121:library:0.9")
'com.github.prt2121:library:jar:0.9'
<dependency org="com.github.prt2121" name="library" rev="0.9">
  <artifact name="library" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.prt2121', module='library', version='0.9')
)
libraryDependencies += "com.github.prt2121" % "library" % "0.9"
[com.github.prt2121/library "0.9"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Glass GDK Progressbar

Maven Central

Build Status

Painless ProgressBar for Glass GDK!

###Including In Your Project

#####Gradle

compile 'com.github.prt2121:ProgressBar:1.0@aar'

###Usage

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my);
        mSliderView = (SliderView) findViewById(R.id.slider);
        mSliderView.startProgress(5 * 1000, animatorListener); // 5 seconds with listener
        // mSliderView.startProgress(5 * 1000); // 5 seconds without listener
        // mSliderView.startIndeterminate();
    }

Changing the color in xml

gif 02

    <com.prt2121.glass.widget.SliderView
        android:id="@+id/slider_top"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        app:progress_color="@android:color/holo_blue_bright" />

    <com.prt2121.glass.widget.SliderView
        android:id="@+id/slider_bottom"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        app:progress_color="@android:color/holo_blue_bright" />

gif 02

    <com.prt2121.glass.widget.SliderView
        android:id="@+id/slider_top"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true" />

    <com.prt2121.glass.widget.SliderView
        android:id="@+id/slider_bottom"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true" />

Versions

Version
0.9