Custom Progress Dialog

Additional

Language
Kotlin
Version
0.1.0 (Dec 30, 2018)
Created
Dec 30, 2018
Updated
Mar 15, 2019
Owner
Fevzi Ömür Tekin (fevziomurtekin)
Contributor
Fevzi Ömür Tekin (fevziomurtekin)
1
Activity
Badge
Generate
Download
Source code
APK file

Advertising

Custom Progress Dialog

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



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.