UI - M new feature 1

Posted on By Vivian Sun

1. Dialog, Toast, Snackbar

Dialog, Toast, Snackbar

2. Percent support library

Percent Support Library: Bring dimension in % to RelativeLayout and FrameLayout

  • android.support.percent.PercentRelativeLayout
  • android.support.percent.PercentFrameLayout

percent-support-library

3. NestedScrolling Andorid嵌套滑动机制

NesedScrolling 特性:

比如你使用了Toolbar,下面一个ScrollView,向上滚动隐藏Toolbar,向下滚动显示Toolbar,这里在逻辑上就是一个NestedScrolling —— 因为你在滚动整个Toolbar在内的View的过程中,又嵌套滚动了里面的ScrollView。

Andorid嵌套滑动机制

Github Code

4. TextInputLayout (from android design support library)

深入TextInputLayout

google API