• This repository has been archived on 21/Apr/2021
  • Stars
    star
    957
  • Rank 46,651 (Top 1.0 %)
  • Language
    Java
  • Created over 11 years ago
  • Updated about 8 years ago

Reviews

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

Repository Details

Holo Circular ProgressBar

HoloCircularProgressBar

What is HoloCircularProgressBar

HoloCircularProgressBar is a Custom View implementation for Android you might know from the Android Clock App from Android 4.1

Usage

Sample Project

You can see the ProgressBar working in the sample application. Just check out the library and create a new "Android Project form Existing Code"

Use it in your own Code

Add the View in your Layout

<com.pascalwelsch.holocircularprogressbar.HoloCircularProgressBar
    android:id="@+id/holoCircularProgressBar"
    android:layout_width="300dp"
    android:layout_height="300dp"/>

Style

Don't forget to add a default style to your AppTheme

<style name="AppTheme" parent="android:Theme.Holo">
    <item name="circularProgressBarStyle">@style/CircularProgressBar</item>
</style>

I added two simple styles @style/CircularProgressBar and @style/CircularProgressBarLight to give you a quick start. You can see both styles in action in the sample Project

After you wrote your own style you have to rebuild your project in Android Studio (or restart your Eclipse. The ADT Plugin really has some troubles working with Android Libraries and Styles).

Of cause can you change the color at runtime. Here are some examples from the sample app:

Errors

There might be some error from your IDE. Most of them are simply solved after building the project.

Got this error?

The following classes could not be instantiated:
- de.passsy.holocircularprogressbar.HoloCircularProgressBar (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
Tip: Use View.isInEditMode() in your custom views to skip code when shown in Eclipse

If your Layout Editor can't draw the view, you have to restart Eclipse. There is a bug in the ADT Plugin

Got the next error?

Missing styles. Is the correct theme chosen for this layout?
Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.

Failed to find style 'circularProgressBarStyle' in current theme

You have to add a style for this View. see the Style section

Bugs

You found bugs? Report them or feel free to fix them by yourself and make a pull request. No one wants a buggy library

What's new (Changelog)

version 1.3 03.10.14
* new package name
* visible in `ScrollView`
* gradle and Android Studio support
version 1.2 22.05.14
* bugfixes for orientationchange
* layout bugs
version 1.1 12.10.13
* change color at runtime
* XML Attributes thumb_visible and marker_visible
* minSdkVersion decreased to 8 for the library
* avoid attr conflict with other library like HoloEverywhere
* fixed no animation from progress 0 to progress 1
* updated sample app with new test functions
version 1.0 10.03.13
* initial version of a holo themend circular progress bar 

License

Copyright 2013 Pascal Welsch

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.

Author: Pascal Welsch

More Repositories

1

CompositeAndroid

Composition over inheritance for Android components like Activity or Fragment
Java
516
star
2

kt.dart

A port of kotlin-stdlib for Dart/Flutter including immutable collections (KtList, KtMap, KtSet) and other packages
Dart
467
star
3

flutter_wrapper

Flutter execution wrapper which keeps the flutter version in sync for each project
Dart
282
star
4

dart-lint

An opinionated, community-driven set of lint rules for Dart and Flutter projects. Like pedantic but stricter
275
star
5

deep_pick

Pick values from Dart deep nested data structures (usually json)
Dart
106
star
6

gradle-GitVersioner

generates a project version for the given git project to distinguish between builds
81
star
7

gradle-gitVersioner-plugin

Extracts a useful versionCode and versionName from git history
Kotlin
71
star
8

Konduit

A declarative UI Framework for android using Kotlin
Kotlin
70
star
9

spot

Chainable powerful Flutter widget selector API, screenshots and assertions for awesome widget tests.
Dart
62
star
10

ArrayAdapter

The missing ArrayAdapter implementation for RecyclerView
Java
37
star
11

git-revision

Git extension to generate a meaningful, human readable revision for each commit in a git repository.
Dart
25
star
12

android-wear-GoPro-Remote

Android Wear Application to control a GoPro with wifi commands
Java
22
star
13

android-GetReactive

GitHub repository search with RxJava (code from talk "Get Reactive" at DroidconUk15/Devoxx15)
Java
13
star
14

nanoid2

Dart
11
star
15

docker-flutterw

Docker image for flutter projects using flutter_wrapper
Dockerfile
10
star
16

kotlin-advent-of-code

Kotlin implementation of http://adventofcode.com/
Kotlin
8
star
17

flutter-tdd-workshop

Flutter TDD workshop
C++
7
star
18

immutability_in_dart

Dart
7
star
19

aoc22_dart_code_golf

AdventOfCode 2022 in Dart focusing on code golf, making the solutions as small as possible
Dart
5
star
20

cgn_code_design_workshop

Android workshop at Code+Design in Cologne
Java
3
star
21

android-wear-samples

samples for android wear APIs for the Hackathon in Cologne 5.3.15 http://hackathon.mobile.cologne/
Java
3
star
22

flutterw_sidekick_plugin

Binds the flutter_wrapper Flutter SDK to sidekick CLIs
Dart
2
star
23

flutter_dependabot_example

Dart
2
star
24

Kata-Kotlin-Pancake-Flipper

Coding challenge in Kotlin from first qualification round of Google code jam 2017
Kotlin
1
star
25

dart-aoc18

Advent of code solutions in dart
Dart
1
star
26

gdg-dus-study-jam

Java
1
star
27

kata-author-collaboration

Coding dojo kata building a shopping basket with discounts
1
star
28

gh-tidy-clone

Clones github projects into ~/Projects/github/{org}/{repo}
Go
1
star