• Stars
    star
    248
  • Rank 163,560 (Top 4 %)
  • Language
    Java
  • Created over 7 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple custom ViewGroup with two shapes inside and simple scale animation

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.

More Repositories

1

cropiwa

πŸ“ Configurable Custom Crop widget for Android
Java
2,228
star
2

AndroidRecording

Android Recording library offers convenient tools for audio/video recording and playback
Java
418
star
3

IncrementProductView

Interesting concept of products incrementation
Java
259
star
4

SlidingSquareLoaderView

Marvelous sliding square loader view
Kotlin
179
star
5

Getting-started-with-Kotlin

πŸš€ How to use Kotlin with popular Android libraries
Kotlin
145
star
6

BadgeHolderView

ViewGroup for browse badge view with count of some products
Java
66
star
7

DotsLoaderView

Simple dots loader view
Java
66
star
8

aiohttp_test_chat

Simple aiohttp test chat
Python
58
star
9

django-skd-smoke

This package is intended for simplification of smoke tests creation
Python
48
star
10

libGDX-Path-Editor

libGDX Path Editor lets you easily create complex pathes your game characters can move along.
Java
44
star
11

locust-bokeh-load-test

Python
41
star
12

IndicatorView

Configurable view for ViewPager
Java
40
star
13

jwt-python-tutorial

Example repo for JWT in Python tutorial
Python
25
star
14

VideoFramingDemo

This is a simple demo which works with Android's MediaMetadataRetriever class to extract frames from video file
Java
22
star
15

ListView-Swipe-to-Delete

ListView Swipe to Delete is an Android library which offers a list view navigation mode similar to Any.do application
Java
20
star
16

CenteredContentButton

Centered Content Button is Android library which contains button-like and toggle button-like components with centered content - icon and/or text.
Java
16
star
17

ErrorLayout

Simple layout to show custom error toast with animation
Java
13
star
18

collection_in_kotlin

πŸ“– Collections in Kotlin for Android developers
Kotlin
13
star
19

SketchView

SketchView library provides a custom implementation of a canvas on which user can draw via gestures
Java
13
star
20

django-skd-tools

Python
11
star
21

PullRefreshLayout

Simple custom view pull to refresh
Java
9
star
22

SKLocalizable

Localization add-on for native iOS components
Swift
8
star
23

django-template

Python
8
star
24

django-singleton-tutorial

Example repo for Singleton model in Django tutorial. http://steelkiwi.com/blog/practical-application-singleton-design-pattern/
Python
7
star
25

ErrorParser

Simple JSON parser for Android
Java
7
star
26

django_aiohttp_websockets

Example Django-project with Websocket's chat written using aioHTTP and aioRedis
Python
6
star
27

Android-Image-Worker-Library

Android library that helps you downloading and storing images.
Java
6
star
28

SKExtensions

Common used Extensions in Swift
Swift
5
star
29

NavigationTools

Java
4
star
30

emacs.d

Emacs configuration for working with Python
Emacs Lisp
4
star
31

SoundCloudAuthentificator

Swift
3
star
32

django-steelkiwi-project

project template
Python
3
star
33

hunting-kiwi

πŸ”« Simple ERP system for HR managers
JavaScript
2
star
34

exchange_rates

Crypto currencies exchange rates flutter redux sample project for uamobile 2019
Dart
2
star
35

ErrorParse-ios

Parser class for error text retrieving
Swift
2
star
36

js-helpers

JavaScript
2
star
37

angular1-boilerplate

Boilerplate for Angular 1 on es6-modules
JavaScript
2
star
38

spa-battle

Small SPA implemented with most popular front-end frameworks
HTML
2
star
39

SKChart

Swift
1
star
40

AppDelegate-Firebase

Example of using Firebase PushMessages in iOS
Swift
1
star
41

django-knowledge

Python
1
star