Skip to content

fevziomurtekin/custom-progress-dialog

Repository files navigation

Custom Progress Dialog

Android Arsenal

Custom progress dialog library written in Kotlin.

Types of Progress Bar

  • INFINITY
  • BARS
  • ECLIPSE
  • BALL
  • CUBE
  • FLICKR
  • INTERWIND
  • RIPPLE
  • PACMAN
  • SPINNER
  • TRIANGLE
  • WEDGES
  • HEART

Screens

With various dialogs you will make the definition of beautiful transition screens.

Infinity Heart Ball
Bars Cube Flickr
Eclipse Interwind Ripple
Pacman Spinner Triangle
Wedges

Usage

   allprojects {
       repositories {
	    ...
	    maven { url 'https://jitpack.io' }
	   }
	}
  
  .....

    dependencies {
	  implementation 'com.github.fevziomurtekin:custom-progress-dialog:0.1.0'
	  }
	}

Include in the activity

  class MainActivity : AppCompatActivity() {

  private lateinit var progressbar : Dialog

  override fun onCreate(savedInstanceState: Bundle?) {
      super.onCreate(savedInstanceState)
      setContentView(R.layout.activity_main)
      progressbar = findViewById(R.id.progress)
      progressbar.settype(Type.WEDGES)
      progressbar.setdurationTime(100)
      progressbar.show()
  }
}

Note: You can hide or show the progress dialog with gone() and show() methods.

Include in XML

 <com.fevziomurtekin.customprogress.Dialog
          android:layout_width="60dp"
          android:layout_height="60dp"
          android:id="@ id/progress"
          customprogress:durationTime="50"
          />

Attributes

Attribute Description
durationTime Default time, 100
type The dialog type (by default INFINITY)

License

MIT License

Copyright (c) 2018 Fevzi Ömür Tekin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.