Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6828029 authored by Daisuke Miyakawa's avatar Daisuke Miyakawa
Browse files

Implement smoother swipe animation for Phone UI

Phone UI conditionally shows split ActionBar on the bottom,
which makes swipe animation less smooth. This change makes it
smoother by reducing layout re-calculation.

- stop changing menu state on onPageSelected but do so on
  onPageScrollStateChange.
- use android:windowActionBarOverlay to suppress recalculation
  during menu show-up
- add marginTop to every fragment for Phone so that fragments
  won't overlap with ActionBar
- add paddingBottom for CallLog and Favorites so that those
  fragments won't overlap with split ActionBar

FUTURE TODO:

We need custom assets for android:actionBarStyle
- android:background
- android:backgroundStacked
- android:backgroundSplit

Bug: 5022052
Change-Id: I3bd48cf9d8aaa398806531823fca63de328b807a
parent 0b477b19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment