Circle button widget for Android

Overview

DEPRECATED

This library is deprecated and no new development is taking place. Consider using a FAB(Floating action button) instead.

E.g. the Android Design Support Library offers a FAB implementation.

android-circlebutton

Circle button widget for Android

Button Example

Download an example apk

Gradle dependency build.gradle

repositories {
    mavenCentral()
    mavenLocal()
}

...

dependencies {
    compile 'com.github.markushi:circlebutton:1.1'
}

Example Usage:

<FrameLayout
	xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:app="http://schemas.android.com/apk/res-auto"
	android:layout_width="match_parent"
	android:layout_height="match_parent" >

	<at.markushi.ui.CircleButton
		android:layout_width="64dip"
		android:layout_height="64dip"
		android:src="@drawable/ic_action_tick"
		app:cb_color="#99CC00"
		app:cb_pressedRingWidth="8dip" />

</FrameLayout>
Comments
  • Internal Image Size doesn't grow with circle

    Internal Image Size doesn't grow with circle

    When I put in the button as follows: <at.markushi.ui.CircleButton android:layout_width="360dip" android:layout_height="360dip" android:src="@drawable/ic_question_mark" app:cb_color="#99CC00" app:cb_pressed_ring_width="8dip" android:layout_gravity="center" />

    The image in the center remains the same size as it was before making it bigger

    opened by eladkatz 3
  • CircleButton inside ListView

    CircleButton inside ListView

    Hi, when I use the CircleButton inside a ListView item and press and hold the animation is triggered. Is it possible to change it to listen the onClick instead of isPressed event ?

    opened by julio-cotta-edx 1
  • GitHub release

    GitHub release

    Hi

    Would be really nice to have GitHub release of Circlebutton: https://github.com/markushi/android-circlebutton/releases

    So that its a bit easier to install it using JitPack. Although there's a maven central release we're seeing users trying to install it using JitPack as well:)

    opened by jitpack-io 0
  • The press animation will not work when the size of button and icon don't match well

    The press animation will not work when the size of button and icon don't match well

    The size of button = 42 * 42 dp, icon size = 96 * 96 in xxhdpi + cb_pressedRingWidth = 8dp, the press animation works well.

    But it's out of function when I change the size of button smaller than 42 dp. Is it possible to fix it?? Thx~

    opened by enginebai 0
  • added semi-proper click listener

    added semi-proper click listener

    thanks for this beautiful library, but i suggest adding some semi-proper click listener for it to work as a button-like view.

    [EDIT] : ah nevermind this, It can be done already by view.onclicklistener, sorry. David

    opened by spurdow 0
  • CircleButton has to have width and height

    CircleButton has to have width and height

    I want to have a weight for FrameLayout (parent of CircleButton), and use "match_parent" for CircleButton's width and height. How can i do that?

    opened by hosseiniSeyRo 0
  • Added shadow layer to emulate FAB behavior.

    Added shadow layer to emulate FAB behavior.

    Hi Mark,

    Thanks for writing your CircleButton control. I plan to use it for FAB-like functionality in my pre-Lollipop apps. I added a shadow effect to help.

    Cheers, Steve

    opened by srdubya 0
Owner
Markus Hintersteiner
Markus Hintersteiner
A cute widget of Switch Button for you to create beautiful and friendly UI.

SwitchButton To get a quick preview, you can get Demo apk in Google Play or Directly download. This project provides you a convenient way to use and c

kyleduo 4.6k Dec 31, 2022
Material progress circle around any FloatingActionButton. 100% Guidelines.

FABProgressCircle Android library to provide a material progress circle around your FloatingActionButton. This component is compatible with any existe

Jorge Castillo 1.2k Jan 7, 2023
Android Circular Progress Button

?? Before using this library, read information below ?? This library is not more supported. If you want to add new feature or fix a bug, grab source

Dmytro Danylyk 5.6k Jan 7, 2023
FButton - a flat button library for Android

FButton FButton is a custom Button of Android with "Flat UI" concept. FButton's design get inspiration from designmono. This library is very small and

Le Van Hoang 1.4k Dec 12, 2022
Android button which moves in eight direction.

Moving Button Android button which moves in eight direction. Preview Sample Demo You can download demo movie file here : demo.mov It's also on Youtube

Leonardo Taehwan Kim 130 Nov 22, 2022
Button for android with animations for transition and error states.

Transition Button Android Preview Expand animation: Shake animation: Installation Gradle dependencies { implementation 'com.royrodriguez:transitionbu

Roy Rodriguez 137 Jan 3, 2023
[] Android floating action button

DEPRECATED Use the FloatingActionButton from the support library instead. FloatingActionButton Description Android floating action button which reacts

Oleksandr Melnykov 4k Jan 5, 2023
Floating Action Button for Android based on Material Design specification

FloatingActionButton Yet another library for drawing Material Design promoted actions. Features Support for normal 56dp and mini 40dp buttons. Customi

Zendesk 6.4k Dec 26, 2022
[] An Android library for an expandable button menu

ExpandableButtonMenu ExpandableButtonMenu is an Android library which implements an expandable button that can be used as a substitute of a fixed size

Lemon Labs 325 Nov 14, 2022
Android library providing an implementation of the Material Design Floating Action Button Speed Dial.

Android library providing an implementation of the Material Design Floating Action Button Speed Dial.

Sanyam Mehta 6 Dec 24, 2022
A simple Floating Action Button that shows an anchored Navigation View

Floating Navigation View A simple Floating Action Button that shows an anchored Navigation View and was inspired by Menu Material Fixed created by Tom

André Mion 1.3k Dec 29, 2022
A download button with pretty cool animation

ArrowDownloadButton A download button with pretty cool animation, this is an implemention of https://dribbble.com/shots/2012292-Download-Animation Enj

Rongchan Liu 966 Nov 29, 2022
Button which is visible while user holds it. Main use case is controlling audio recording state (like in Telegram, Viber, VK).

HoldingButton Button which is visible while user holds it. Main use case is controlling audio recording state (like in Telegram, Viber, VK). Getting s

Artem Hluhovskyi 594 Jan 1, 2023
This is a Material Design loading button

This is a library project with a custom view that implements concept of Send Comment (https://dribbble.com/shots/1986254-Send-Comment-Shoppr) made by

DevinShine 295 Jul 31, 2022
comtomize view submit button which you use for submit operation or download operation and so on.

This is library project with a custom view that implements concept of Submit Button (https://dribbble.com/shots/1426764-Submit-Button?list=likes&offse

ZhangLei 129 Feb 5, 2021
A raised button that lowers down to 0dp of elevation

RaiflatButton A raised button that lowers down to 0dp of elevation. From my blog post: https://rubensousa.github.io/2016/10/raiflatbutton It behaves l

Rúben Sousa 328 Sep 11, 2022
A shopping cart button with a telescopic displacement rotation animation ...一个带伸缩位移旋转动画的购物车按钮

AnimShopButton A shopping cart button with a telescopic displacement rotation animation ... 一个仿饿了么 带伸缩位移旋转动画的购物车按钮 注意,本控件非继承自ViewGroup,而是纯自定义View,实现的仿

张旭童 1.3k Nov 10, 2022
Kotlin Expanding Floating Action button

Kotlin-Expanding-Floating-Action_button Home Screen As you can see there is only a siongle floating button with + icon Expanding Fab button When we cl

Akshay Teli 0 Nov 3, 2021
Floating Action Button But Moveable And Expandalbe

MeFab todo add the maven bacge here Floating Action Button but MOVEABLE and EXPA

Hussien Fahmy 6 Dec 30, 2022