All Projects → steelkiwi → Separateshapesview

steelkiwi / Separateshapesview

Simple custom ViewGroup with two shapes inside and simple scale animation

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Separateshapesview

Hhcustomcorner
Awesome library to customize corners of UIView and UIButton. Now you can customize each corner differently
Stars: ✭ 36 (-85.6%)
Mutual labels:  library, button
Esp Dash
A blazing fast library to create a functional dashboard for ESP8266 and ESP32
Stars: ✭ 548 (+119.2%)
Mutual labels:  library, button
Wymaterialbutton
Interactive and fully animated Material Design button for iOS developers.
Stars: ✭ 80 (-68%)
Mutual labels:  library, button
Fillingbutton
🔥Replace typical onLongClickListener with this library!
Stars: ✭ 31 (-87.6%)
Mutual labels:  library, button
Fannypack
[UNMAINTAINED] An accessible-focused, themeable, friendly React UI Kit.
Stars: ✭ 245 (-2%)
Mutual labels:  library, button
P5.clickable
Event driven, easy-to-use button library for P5.js 👆
Stars: ✭ 66 (-73.6%)
Mutual labels:  library, button
Bttn.css
Awesome buttons for awesome projects!
Stars: ✭ 2,004 (+701.6%)
Mutual labels:  library, button
Ethereum Input Data Decoder
Ethereum smart contract transaction input data decoder
Stars: ✭ 242 (-3.2%)
Mutual labels:  library
Bitcoinlib
Bitcoin and other Cryptocurrencies Library for Python. Includes a fully functional wallet, Mnemonic key generation and management and connection with various service providers to receive and send blockchain and transaction information.
Stars: ✭ 247 (-1.2%)
Mutual labels:  library
Cwebsocket
cWebsocket is lightweight websocket server library
Stars: ✭ 241 (-3.6%)
Mutual labels:  library
Svelte Forms Lib
📝. A lightweight library for managing forms in Svelte
Stars: ✭ 238 (-4.8%)
Mutual labels:  library
Cordova Plugins
Apache Cordova
Stars: ✭ 242 (-3.2%)
Mutual labels:  library
Swiftyvk
Easy and powerful way to interact with VK API for iOS and macOS
Stars: ✭ 247 (-1.2%)
Mutual labels:  library
Alertift
Swifty, modern UIAlertController wrapper.
Stars: ✭ 242 (-3.2%)
Mutual labels:  library
Jreactive 8583
Java Client & Server for ISO8583 & Netty
Stars: ✭ 248 (-0.8%)
Mutual labels:  library
Aff3ct
A fast simulator and a library dedicated to the channel coding.
Stars: ✭ 240 (-4%)
Mutual labels:  library
Statik
Multi-purpose static web site generator aimed at developers.
Stars: ✭ 249 (-0.4%)
Mutual labels:  library
Simpleeval
Simple Safe Sandboxed Extensible Expression Evaluator for Python
Stars: ✭ 246 (-1.6%)
Mutual labels:  library
Mtproto Core
Telegram API JS (MTProto) client library for browser and nodejs
Stars: ✭ 242 (-3.2%)
Mutual labels:  library
Pyrocore
🔧 A collection of tools for the BitTorrent protocol and especially the rTorrent client
Stars: ✭ 247 (-1.2%)
Mutual labels:  library

SeparateShapesView

Made in SteelKiwi Download

Description

Simple custom ViewGroup with two shapes inside and simple scale animation

View

Animation Animation

Download

For project API 21+.

Gradle

compile 'com.steelkiwi:separate-shapes-view:1.1.0'

Usage

First of all, need add SeparateShapesView to your xml layout

<com.steelkiwi.library.SeparateShapesView
    android:id="@+id/view"
    android:layout_width="match_parent"
    android:layout_height="@dimen/view_height"
    android:layout_alignParentBottom="true"
    android:layout_alignParentLeft="true" or android:layout_centerInParent="true" // it will animate view left or center position
    android:layout_marginRight="@dimen/margin_40"
    android:layout_marginLeft="@dimen/margin_40"
    android:layout_marginBottom="@dimen/margin_20"
    app:ssv_all_text_caps="true"
    app:ssv_done_drawable="@drawable/done"
    app:ssv_left_shape_drawable="@drawable/left_rounded_corner_drawable"
    app:ssv_right_shape_drawable="@drawable/right_rounded_corner_drawable"
    app:ssv_left_shape_text="@string/left_title"
    app:ssv_right_shape_text="@string/right_title"
    app:ssv_text_color="@android:color/white"
    app:ssv_text_size="14sp"
    app:ssv_single_shape="false"
    app:ssv_center_shape_text="@string/center_title"/>

You can customize view, through this attributes

  • app:ssv_all_text_caps - set all text cups
  • app:ssv_done_drawable - set icon when view is finish animate
  • app:ssv_left_shape_drawable - left shape drawable
  • app:ssv_right_shape_drawable - right shape drawable
  • app:ssv_left_shape_text - left shape title
  • app:ssv_right_shape_text - right shape title
  • app:ssv_text_color - shape text color
  • app:ssv_text_size - shape text size
  • app:ssv_single_shape - set flag to not divide shapes
  • app:ssv_center_shape_text - shape center text

Inside your client code need to implement listener SeparateShapesView.OnButtonClickListener to handle view click state. OnButtonClickListener methods:

  • boolean onLeftButtonClick()
  • boolean onRightButtonClick()
  • boolean onMiddleButtonClick() // will call when use ssv_single_shape and ssv_center_shape_text is not null

If any of the methods will returns true, view will animate. Otherwise nothing happens

License

Copyright © 2017 SteelKiwi, http://steelkiwi.com

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].