Bluetooth State View

Additional

Language
Kotlin
Version
v1.1.0 (Mar 3, 2019)
Created
Dec 6, 2018
Updated
May 1, 2019 (Retired)
Owner
Erdem Orman (eo)
Contributor
Erdem Orman (eo)
1
Activity
Badge
Generate
Download
Source code

Advertisement

Bluetooth State View

Material design animated Bluetooth state view for Android

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
Rounded  
Sharp  

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.