• Stars
    star
    375
  • Rank 114,096 (Top 3 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 9 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ProgressBar/SeekBar delegate to show floating progress with style

ProgressHint

ProgressBar/SeekBar delegate to show floating progress with style

JitPack release

Demo

Description

  • Library module provides a basic abstract ProgressHintDelegate which in conjunction with SeekBar could show current progress in a floating styled window.
  • Library-addition module implements SeekBar and VerticalSeekBar with delegate support.

Getting Started

1) In your build.gradle:

repositories {
  jcenter()
  maven { url "https://jitpack.io" }
}
dependencies {
  compile 'com.github.techery.progresshint:library-addition:{jitpack-release}'
}

2) In view XML

<io.techery.progresshint.addition.widget.SeekBar
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:popupStyle="follow"
    />

or

<com.h6ah4i.android.widget.verticalseekbar.VerticalSeekBarWrapper
    android:layout_width="wrap_content"
    android:layout_height="match_parent"
    >
  <io.techery.progresshint.addition.widget.VerticalSeekBar
      android:layout_width="0dp"
      android:layout_height="0dp"
      app:seekBarRotation="CW90"
      app:popupStyle="follow"
      app:popupLayout="@layout/custom_seekbar_hint_popup"
      app:popupAlwaysShown="true"
      />
  <!-- Rotation: CW90 or CW270 -->
</com.h6ah4i.android.widget.verticalseekbar.VerticalSeekBarWrapper>

Available attributes

  • popupLayout: layout to be used, must include android:id/text1 TextView
  • popupStyle: can be fixed or follow, default follow
  • popupAnimationStyle: in/out animation, default fade
  • popupOffset: distance from top/right of the widget to popup, default 0
  • popupAlwaysShown: do not dismiss popup after onStopTrackingTouch, default false
  • popupDraggable: enables progress change by hint popup dragging, default true

3) Optionally customize the displayed text in Java code:

SeekBarHintDelegateHolder seekBar = (SeekBarHintDelegateHolder) findViewById(R.id.seekBar);
seekBar.getHintDelegate()
    .setHintAdapter(new SeekBarHintAdapter() {
      @Override public String getHint(android.widget.SeekBar seekBar, int progress) {
        return "Progress: " + String.valueOf(progress);
      }
    });

4) Optionally use Theme attribute

<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <item name="progressHintStyle">@style/Widget.ProgressHint</item>
</style>

5) Optionally if inside ScrollView

Use ProgressHintScrollController to hide & show popup properly on scrolling. See Sample's Activity for details

Additionally

  • Supports AndroidX

Credits

Thanks to

License

Copyright (c) 2015 Techery

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.

More Repositories

1

ProperRatingBar

Inspired by stock android RatingBar. Simpler, has features that original lacks.
Java
409
star
2

presenta

Easy MVP upon Mortar and Flow
Java
50
star
3

janet

Command-based architecture in reactive manner
Java
43
star
4

snapper

NoSQL fast-serializable storage with DataViews, Sorting, Filtering and more
Java
40
star
5

Naga

Simplified Java NIO asynchronous sockets
Java
31
star
6

FLUX

FLUX implementation in Objective-C
Objective-C
25
star
7

CellAdapter

Java
14
star
8

janet-http

REST service for Janet. Supports fully customizable requests, http-clients and converters
Java
13
star
9

WebRTC-iOS

C++
10
star
10

Oscar

Actors programming model framework for Objective-C
Objective-C
8
star
11

janet-async

Janet Service for Async server interaction, e.g. socket.io
Java
7
star
12

mappery

Simple kotlin/java mapping tool
Kotlin
7
star
13

janet-command

ActionService for Janet which delegates job execution back to command action
Java
7
star
14

janet-architecture-sample

Java
6
star
15

janet-analytics

Janet-powered analytics handling service
Java
5
star
16

janet-kotlin

Using Janet with Kotlin
Kotlin
5
star
17

flux-todo-app

FLUX example project
Objective-C
5
star
18

immutabler

Immutabler gem
Ruby
5
star
19

janet-ts

TypeScript
4
star
20

RxListAdapter

Easy to integrate RecyclerView's Adapter with Rx support
Java
4
star
21

janet-retrofit-converter

Small tool to generate janet-http actions using retrofit source file
Kotlin
3
star
22

OperationActionSubscriber

Java
3
star
23

Tesla

Command-based architecture in reactive swifty manner
Swift
2
star
24

vacancies

2
star
25

janet-sample-api-integration

Java
2
star
26

android-defaults

Common files for dev. environemnt
Java
2
star
27

hermet

Techery internal service for proxying third party services and stub them if needed.
TypeScript
2
star
28

TEArrayDiffCalculator

Objective-C
2
star
29

PonyDebuggerApp

OS X application for run/stop pony debugger server
Python
2
star
30

janet-http-android-sample

Sample app to show Janet + Http Service power for Android
Java
2
star
31

DroidBilling

Helper classes for working with android in-app purchase v3. Based on official Google code example
Java
2
star
32

janet-ts-http

JavaScript
1
star
33

janet-proxy

ActionService for Janet which delegates actions to another services
Java
1
star
34

dotfiles

ApacheConf
1
star
35

OscarSampleProject

Objective-C
1
star
36

BridgeCRM

Testing purpose repo with small login/reg (via parse) android application
Java
1
star
37

techery.github.io

Techery Engineering
HTML
1
star
38

code-review-checklists

Code review checklists
1
star
39

Frameworks-Embedding-Demo-app

Demo app with different approaches for dynamic frameworks embedding
Objective-C
1
star
40

JSCore

Objective-C
1
star
41

janet-converters

Set of popular object-to-bytes converters for Janet
Java
1
star
42

Swactors

Swactors
Perl
1
star
43

JenkinsPipelineTest

JavaScript
1
star
44

janet-flux-todo

Java
1
star
45

frontend-corner

Repository with code examples for presentations
Svelte
1
star
46

immutables-gson-adapters-provider

Annotation Processor to generate List of generated Gson's TypeAdapterFactory(s) for Immutables.org
Java
1
star
47

android-assignment

1
star