Support centering title and changing its font on Android
This commit adds support for the following style properties:
titleBarTitleFontFamily - string, font name in assets
titleBarTitleTextCentered - boolean, default is false
* Add view manager
* Don’t update screen style on ViewPagerScreenChangedEvent
* change version to legacy
* Fix headers after rebase
* version bump
* Add image to each list item
* Basics structure is done (I think)
toElement also animates into place, even though values are completely wrong.
* Stop relying on refs to resolve fromElements
* Hide only corresponding fromElement
* Animate sharedElements back into place on screen pop
* Update example project with Dota heroes
* Initial curved animation implementation
* Stop resolving sharedElement refs
* Move getLocationOnScreen to ViewUtils
* Parse control points passed from Js
* Scale animation works
Not sure about pivot coordinates yet.
* minor update to SharedElementsTransition screen
* Minor changes to example screens
* Draw shared elements on Screen
Ignore Z order and draw shared elements directly on screen
* stuff
* Start animation after views are drawn
* f
* Animate text color
* Less allocations when animating text color
* Switch from RGB to LAB 😎
* Save and restore SpannedString
* Use correct status bar height in Android M
* Pass show and hide duration from Js
* Fix flicker when show animation starts
* Make shared elements not clickable
motivation: might be related to some native crash
* Use linear interpolation as default interpolation
* Code cleanup
* Clear SharedElements refs when screen is destroyed
* Code cleanup
* Add decelerate interpolator
* No more occasional flicker on animation start (Hopefully 🙏)
* Add FastOutSlowIn interpolator
* Animate only visible shared elements
* Clip bounds animator somewhat works
* Hope fully no more flickery images
* Add interpolator to each animator
* some work on shared element screens
* rebase fix
* fix lint
Implement collapsingToolBarExpendedColor and showTitleWhenExpended (#793)
collapsingToolBarExpendedColor - determines the TitleBar color in expended mode
showTitleWhenExpended - defaults to true when expended color is defined.
More work towards collapsing react view in top bar
This commit contains various fixes and enhancements, mostly because I
was too lazy to commit small changes.
* Add topBarCollapseOnScroll style property which compliments
navBarHideOnScroll. This property is needed when showing a
collapsing topTabs screen. In this case the developer might to keep
the titleBar bar when the screen is collapsed.
* Reduce collapse sensitivity by taking scaled touch slop into account
* Cancel touches when collapsing. This fix prevents buttons from
responding to touch events when collapse ends.
* Add showInAppNotification autoDismissTimerSec param
* Default autoDismissTimerSec of notification to 5, like on iOS
* Add param to disable notification auto-dismiss behaviour.
* Update showInAppNotification example with optional params
dismissInAppNotification support on android. (#687)
* Add .hideInAppNotification on android.
- Separate hide and show animations.
- Implement a little bit of throttling around successive calls to .showInAppNotification
* Update example to demo dismiss.
This commit adds support for icons in TopTabs.
It’s possible to have icons with text, or only icons.
Use topTabIconColor and selectedTopTabIconColor to color the icons
Android: If the user has specified navigatorButtons on the showModal params use those instead of the default navigatorButtons of the registered screen. (#675)
* Don’t create SideMenu button automatically on Android
* Remove left button and add it dynamically
* Fix resetTo animation on Android
Up until now resetTo would destroy the current stack and create a new
one. This was an easy implementation but resulted in jurky
(none existent) animations.
This commit changes resetTo behavior. Instead of recreating the stack,
the we reset to is pushed to the stack, and the other elements are
removed when show animation ends.