aboutsummaryrefslogtreecommitdiff
path: root/core-ui/README.md
blob: 3c6e0abab0440860166fc1db36520ac02102b2b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# KAU :core-ui

Holds a collection of generic UIs. 
This submodule takes heavy influence from [Plaid](https://github.com/nickbutcher/plaid), a beautiful showcase for Material Design.

## BoundedCardView

Extends a CardView and provides `maxHeight` and `maxHeightPercentage` attributes.
These values are judged once the view it attached and can be helpful to limit the size with respect to its parent.

One example is in KAU's `:searchview`, where the search results will always allow some space below it for the user to tap and exit.

## CutoutView

> Courtesy of Plaid

Given a background and a text/vector, will "erase" the text/vector from the background.
This can be seen in effect in KAU's `:about` submodule.

## ElasticDragDismissFrameLayout

> Courtesy of Plaid

When scrolling vertically, this frame will allow for overscrolling and will pull the layout out of view and exit if a threshold is reached.
Note that Activities with this frame must be translucent. `@style/Kau.Translucent` can be used as a base.

## InkPageIndicator

> Courtesy of Plaid

A beautiful viewpager indicator

![Ink Indicator Gif](https://raw.githubusercontent.com/AllanWang/Storage-Hub/master/kau/kau_ink_indicator.gif)

## TextSlider

An animated and themable Text Switcher. Specify its direction and set a new text value and it will slide it into view.