Material design animated Bluetooth state view for Android

Language:

Kotlin

Owner:

eo

Contributors:

eo

License:

Apache License 2.0

Description:

Bluetooth State View

Icon

Material design animated Bluetooth state view for Android

Download License License

Download

dependencies {
  implementation 'eo.view:bluetoothstate:1.1.1'
}

You also have the option to download individual animated vector drawables:

dependencies {
  implementation 'eo.avd:bluetoothconnecting:1.1.1'
  implementation 'eo.avd:bluetoothsearching:1.1.1'
  implementation 'eo.avd:bluetoothturningonoff:1.1.1'
}

Usage

Library contains both BluetoothStateView and BluetoothStateDrawable classes. Following XML attributes have corresponding class properties.

<eo.view.bluetoothstate.BluetoothStateView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:bluetoothAnimateStateChanges="true"
    app:bluetoothColor="@android:color/black"
    app:bluetoothTheme="rounded"
    app:bluetoothState="searching" />

Themes & Animations

| | Connecting | Searching | Turning On & Off | - | ---------- | --------- | ---------------- RoundedRounded Connecting | Rounded Searching | Rounded Turning On/Off SharpSharp Connecting | Sharp Searching | Sharp Turning On/Off

Style

Bluetooth state view is styleable using bluetoothStateStyle in your theme. Widget.BluetoothState can be used as a base style.

Sample

Download sample app under releases to play with the library

License

Copyright 2018 Erdem Orman

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.


Leave a Reply