Skip to content

Android library for adding a progress bar with tooltips in your projects

License

Notifications You must be signed in to change notification settings

Anuj-Kumar-Sharma/TooltipProgressBar

Repository files navigation

TooltipProgressBar

Android library for adding a progress bar with tooltips in your projects

Here is the Medium blog to learn more about this library.

Usage:

XML:

     <com.anujkumarsharma.tooltipprogressbar.TooltipProgressBar
        android:id="@+id/tool_tip_progress_bar"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:optionTopTooltipText="You: 45%"
        app:optionBottomTooltipText="Gold: 80%"
        app:optionTopTooltipColor="@color/red"
        app:optionBottomTooltipColor="@color/golden"
        app:optionLeftText="0%"
        app:optionRightText="100%"
        app:optionProgressFillColor="@color/black"
        app:optionProgressFillSteps="45"
        app:optionBottomTooltipSteps="80"
        app:optionProgressTotalSteps="100"/>

Customizations:

  • Related to tool tips

    • app:optionTopTooltipText For top tooltip text
    • app:optionBottomTooltipText For bottom tooltip text
    • app:optionTopTooltipColor For top tooltip text color
    • app:optionBottomTooltipColor For bottom tooltip text color
  • Related to the progressbar

    • app:optionLeftText For text on left side of progressbar
    • app:optionRightText For text on right side of progressbar
    • app:optionProgressFillColor For progressbar fill color
    • app:optionProgressFillSteps For fill steps in progressbar, top tooltip will point at this position
    • app:optionBottomTooltipSteps For bottom tooltip, bottom tooltip will point at this position
    • app:optionProgressTotalSteps For specifying the total number of steps in the progressbar

Download

Download

For Maven:

<dependency>
	<groupId>com.anujkumarsharma.tooltipprogressbar</groupId>
	<artifactId>tooltipprogressbar</artifactId>
	<version>1.1.1</version>
	<type>pom</type>
</dependency>

For Gradle:

implementation 'com.anujkumarsharma.tooltipprogressbar:tooltipprogressbar:1.1.1'

Developed By

Anuj Kumar Sharma

License

   Copyright (C) 2019 Anuj Kumar Sharma
   Copyright (C) 2011 Android Open Source Project

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Contributing to TooltipProgressBar

All pull requests are welcome.

About

Android library for adding a progress bar with tooltips in your projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages