• Stars
    star
    157
  • Rank 238,399 (Top 5 %)
  • Language
    Kotlin
  • Created over 9 years ago
  • Updated over 6 years ago

Reviews

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

Repository Details

A simple material-based support library to bring consistent SeekBars on Android 14 and above

SeekBarCompat

Release GitHub license Android Arsenal

A support library for the material design SeekBar in Android for API 14 and above.

Screenshot

On APIs 14 and above - Seekbars would look something like

Example

The SeekBarCompat picks up the PrimaryColor by default, but you can set custom colors for SeekBar thumb and progress too, both in xml and programmatically.

Xml

<app.minimize.com.seek_bar_compat.SeekBarCompat
        android:id="@+id/materialSeekBar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:maxHeight="300sp"
        app:progressColor="#AFF123"
        app:progressBackgroundColor="#000"
        app:thumbColor="#FF4444"
        app:thumbAlpha="1.0"/>

Note: Add maxHeight attribute in xml - it fixes the thumb gravity issues on APIs < 21

In Xml you can also specify progressBackgroundColor - by default the progressBackgroundColor (progress-line color) is Black.

Programmatically

  val seekBarCompat = findViewById<View>(R.id.materialSeekBar) as SeekBarCompat
  seekBarCompat.setThumbColor(Color.RED)
  seekBarCompat.setProgressColor(Color.CYAN)
  seekBarCompat.setProgressBackgroundColor(Color.BLUE)
  seekBarCompat.setThumbAlpha(128)

Download

Repository available on jCenter

compile 'com.minimize.library:seekbar-compat:0.3.0'

If the dependency fails to resolve, add this to your project repositories

repositories {
    maven {
        url  "http://dl.bintray.com/ahmedrizwan/maven" 
    }
}

License

Copyright 2015 Ahmed Rizwan

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

JetpackComposeCalculator

A jetpack compose clone of Android 10 Calculator UI
Kotlin
292
star
2

RxRecyclerAdapter

Rx based RecyclerView Adapter
Kotlin
192
star
3

JetpackComposeTwitter

A jetpack compose clone of Twitter UI
Kotlin
117
star
4

AndroidKotlinComponents

Boilerplates for Android Components Architecture with Rx, Dagger & Realm written in Kotlin
Kotlin
80
star
5

ChronometerPersist

A simple and easy to use Chronometer State helper library
Kotlin
66
star
6

RxRealmRetroKotlin

Example code demonstrating usage of Realm + Retrofit + Rx in Kotlin
Kotlin
61
star
7

ReactiveAudioRecord

Rx wrapper library for Android's AudioRecord API. (aka RxAudioRecord)
Java
32
star
8

andgen

Templates generator for Android :octocat:
Ruby
14
star
9

FunctionalKotlin-Demo

Demo code for Real World Functional Programming with Kotlin talk
Kotlin
7
star
10

angular-karma-test-action

Github action for running karma tests
HTML
3
star
11

XyzReader

Project 5 - Android Nanodegree
Java
2
star
12

ahmedrizwan

2
star
13

GoUbiquitous

Nanodegree - Project 6
Java
1
star
14

BuildItBigger

Project 4 - Android Nanodegree
Java
1
star
15

SpotifyStreamer

Udacity Project Spotify Streamer
Java
1
star
16

vs-code-bindings

Custom bindings to keep things a bit more consistent between Mac & Windows
1
star
17

homebrew-andgen

Ruby
1
star
18

Capstone-Project

Final Project for Nanodegree
Java
1
star
19

Lism-iOS

Lism App for iOS
Swift
1
star
20

HubRepos

Java
1
star
21

UdacityAppPortfolio

Udacity Project 0 - App Portfolio
Java
1
star
22

remix-infinite-scroll

A demo for doing infinite scroll loading in Remix.
TypeScript
1
star
23

vimrc

Vim configs (NeoVim and Idea)
Vim Script
1
star
24

SuperDuo

Project 3 - Android Nanodegree
Java
1
star
25

SimpleHub

A simple iOS swift app for getting user's github info
Swift
1
star
26

til

1
star
27

nvchad-custom-config

Lua
1
star