- Inspired by Persei for iOS.
- Currently it's just a demo. Far away from a lib.
- MinSdkVersion is 21 due to the usage of Circular Reveal Effect.
The implementation is a little bit tricky. Please tell me if anyone has better thoughts.
TabLayoutwrapped inAppBarLayoutfor the tab bar.FragmentTabHostfor holding tab content.CoordinatorLayoutfor interactions between tab bar and tab content.- Custom view for ripple effect.
- Fragment enter transition for reveal effect.
- A little modification is made on
TabLayoutto remove the underline tab indicator. FragmentTabHostis also modified for two reasons:- The detach of old fragment is delayed. Or reveal animation will perform on a white background instead of the old content.
- Before adding or attaching the new fragment, its reveal point must be updated through
FragmentTabHost. Or reveal animation will always start from left-top corner.
- Use a custom
RippleViewinstead of Android's ripple effect.
Copyright (C) 2016, gelitenight([email protected]).
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.