All Projects → scottyab → HeartBeatView

scottyab / HeartBeatView

Licence: other
Simple custom view of a beating heart using scaling animation.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to HeartBeatView

easyCountDownTimer
A simple android library to countdown timer textview for api 14+
Stars: ✭ 61 (+38.64%)
Mutual labels:  custom-view
SkeletonPlaceholderView
A library for creating dynamic skeleton view
Stars: ✭ 25 (-43.18%)
Mutual labels:  custom-view
un-material-tab
(deprecated) Custom tab layout which can be used as a material TabLayout alternative and contains basic functionality which Google's TabLayout has.
Stars: ✭ 83 (+88.64%)
Mutual labels:  custom-view
password-view
Android password animation
Stars: ✭ 43 (-2.27%)
Mutual labels:  custom-view
Image-Support
Add badge with counter to ImageView Android.
Stars: ✭ 128 (+190.91%)
Mutual labels:  custom-view
MenuPopupView
一款仿iOS长按菜单弹窗的自定义控件
Stars: ✭ 26 (-40.91%)
Mutual labels:  custom-view
XCArcProgressView
Android开口圆环比例进度View(高仿猎豹清理大师内存占用比例View)
Stars: ✭ 28 (-36.36%)
Mutual labels:  custom-view
clearable-edittext
Simple custom view for clearable EditText.
Stars: ✭ 58 (+31.82%)
Mutual labels:  custom-view
AACustomFont
[UNMAINTAINED] AACustomFont is a lightweight custom font binder in XML directly in TextView, Button, EditText, RadioButton, CheckBox tags. The library is aimed to avoid custom views for custom fonts in XML and to minimize the JAVA code for setting the TypeFaces for each view.
Stars: ✭ 76 (+72.73%)
Mutual labels:  custom-view
MarkDEditor
A WYSIWYG MarkDown editor for Android.
Stars: ✭ 76 (+72.73%)
Mutual labels:  custom-view
Custom-Grid-View
Custom Drag and Drop Grid for Home Assistant
Stars: ✭ 103 (+134.09%)
Mutual labels:  custom-view
YuanaItemSettingView
Customizable Item Setting View Android
Stars: ✭ 15 (-65.91%)
Mutual labels:  custom-view
SoundLine
An Android custom view which offers an audio timeline controller as the SoundCloud Sound Wave
Stars: ✭ 53 (+20.45%)
Mutual labels:  custom-view
Android-Code-Demos
📦 Android learning code demos.
Stars: ✭ 41 (-6.82%)
Mutual labels:  custom-view
double-avatar-view
Instagram-like double avatar view with cropping
Stars: ✭ 31 (-29.55%)
Mutual labels:  custom-view
Circular-Progress-View
A customisable circular progress view for android.
Stars: ✭ 39 (-11.36%)
Mutual labels:  custom-view
flasto
A FLoating ASsistive TOuch library for android!
Stars: ✭ 15 (-65.91%)
Mutual labels:  custom-view
EasyMoney-Widgets
The widgets (EditText and TextView) for support of money requirements like currency, number formatting, comma formatting etc.
Stars: ✭ 91 (+106.82%)
Mutual labels:  custom-view
RxLoading
RxJava library for showing a loading (i.e. progress bar) state while waiting for async data with minimal effort and advanced options.
Stars: ✭ 49 (+11.36%)
Mutual labels:  custom-view
SocialOrbitLayout
Kotlin based custom view to show floating objects that can be used for social apps.
Stars: ✭ 28 (-36.36%)
Mutual labels:  custom-view

HeartBeatView

Simple custom view of a beating heart using scaling animation.

##How to use

It's just like the regular ImageView. (actually this custom view extends AppCompatImageView to make use of the tinting)

 <com.scottyab.HeartBeatView
                android:id="@+id/heartbeat"
                android:layout_width="72dp"
                android:layout_height="72dp"
                />

In code you can start(), stop() the beating or toggle() to switch state. If you need to check is the heartbeatview is beating isHeartBeating()

###Customise

There are xml and code versions

  • Scale factor is the amount of size increase/decrease of the heart icon
  • Duration is the time in milliseconds for a complete beat (decrease and increase)
  • Duration for BPM - calculates and sets the duration based on the BPM (beats per minute)
  • Tint (same as on ImageView)

##Add as dependancy

This library is not yet released in Maven Central, until then you can add as a library module or use JitPack.io

add remote maven url

repositories {
    maven {
        url "https://jitpack.io"
    }
}

then add a library dependency

dependencies {
    compile 'com.github.scottyab:HeartBeatView:0.0.1'
}

#Licence

Apache License, Version 2.0

Copyright (C) 2015, Scott Alexander-Bown

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].