Animated Like Button Library

Animated Like Button library is a versatile and user-friendly tool that empowers developers to create customizable buttons with animated interactions. Designed to enhance user engagement, this library allows you to effortlessly integrate animated like buttons into your projects, adding a touch of dynamism to user interactions.

? Preview

? About

  • Customization: Tailor your like button to suit your application’s aesthetic with the ability to choose from a variety of icons, background styles, and icon colors.

  • Interactive Animations: Capture user attention and create a delightful user experience by incorporating smooth animations during button clicks and releases.

  • Easy Integration: Seamlessly integrate the Animated Like Button into your projects with straightforward implementation, saving you time and effort.

  • Versatility: Whether you’re working on a social media platform, a blog, or any other application, this library adapts to various contexts, providing a polished and interactive element.

    ? Usage

Step 1. Add the JitPack repository to your build file Add it in your root build.gradle at the end of repositories:

 dependencyResolutionManagement {
    		repositories {
        		...
        		maven { url 'https://jitpack.io' }
    		}
	   }

Step 2. Add the dependency

 dependencies {
	         implementation 'com.github.AppcentMobile:Animated-like-Button:v1.0.0'
	}

? XML Properties

Properties Description
likeBgColor Set the background color when clicked for liking
likeImgColor Set the icon color when clicked for liking.
unlikeBgColor Set the background color when clicked to unlike
unlikeImgColor Set the icon color when clicked to unlike
iconDrawable set the drawable for the icon
iconWidth the width of the icon
iconHeight the height of the icon

? Example

  <com.appcent.animatedbutton.LikeButton
                android:id="@+id/bttn_celebrate"
                android:layout_width="50dp"
                android:layout_height="50dp"
                android:layout_marginHorizontal="6dp"
                app:iconDrawable="@drawable/baseline_celebration_24"
                app:iconHeight="40dp"
                app:iconWidth="40dp"
                app:layout_constraintBottom_toBottomOf="parent"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent"
                app:likeImgColor="#FFD700"
                app:likeBgColor="#001F3F"
                />

License

Designed and developed by 2023 Betül Necanlı 

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.

GitHub

View Github