浮动动作按钮的快速解决方案,RapidFloatingActionButton(RFAB)
Quick solutions for Floating Action Button,RapidFloatingActionButton(RFAB)
Dependencies: AndroidBucket:The base library AndroidInject:The Inject library ShadowViewHelper:Shadow layout, shadow view for android NineOldAndroids:The Property Animation library for pre android 3.0
compile 'com.github.wangjiegulu:rfab:x.x.x'
com.github.wangjiegulu
rfab
x.x.x
Add at outermost layout of RFAB()
…RFAB also needs an implementation of RapidFloatingActionContent to fill and assign content of RFAB when it expands.
Here is a quick solution of RapidFloatingActionContent:RapidFloatingActionContentLabelList.You can add some items(RFACLabelItem,of course not recommended to add too many items),and config color, drawable, shadow, background image, text size, color of label and animation of each item.
To preview the demo: The top picture effects or Inbox of Google.
At last,you need combine them by RapidFloatingActionButtonHelper.
If you don't like RapidFloatingActionContentLabelList,you can expand your content style. Extend com.wangjie.rapidfloatingactionbutton.RapidFloatingActionContent, initialize the content layout and style,and invoke setRootView(xxx); method. If you want to add more animations,override those methods:
public void onExpandAnimator(AnimatorSet animatorSet);
public void onCollapseAnimator(AnimatorSet animatorSet);add your animations to the animatorSet.
Copyright 2015 Wang Jie
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.暂无开放 Issues,或尚未同步最近议题。