c# - How do I make an expanding button in xamarin.forms? -
as preface, i'd note not have experience in xamarin. working on first application (first 1 have legitimate use). instead of adding drawer left side of screen, i'd add button which, when tapped reveals more buttons.
the official reddit app on android (maybe on ios too) has i'm looking implement.
i embed images need 10 reputation
imgur album of screenshots official reddit app
i highlight button overlayed on seems tabbedpage remains in place when scrolling through tabs. there animation when button tapped implement well.
after further research, have found example of called "micro interaction". 5th example in article i'm looking for.
the purpose of post
i want add button on top of tabbedpage (so persistent between tabs) which, when tapped, reveals more buttons via animation. if possible, use little platform specific code possible.
as mentioned before, new xamarin (and mobile/front-end development) don't know start this. if gracious enough explain how replicate or point me in right direction wonderful.
as demitrian mentioned, not in scope of xamarin.forms. however, there's xamarin.forms library has implementation of floating action button both android , ios. take @ here.
if default there's no control you're trying achieve, can create custom renderer each platform want support. read more custom renderers in official documentation.
in case of library linked to, developer created custom ios control deriving uicontrol
class , overriding methods layoutsubviews
, touchesbegan
, touchesended
, on. in renderer creates new instance of control , sets native control xf shows on ios.
on android, developer derives imagebutton
class , goes there. here links should check out: ios renderer, android renderer , sample project
please notice library isn't actively maintained anymore might require work working.
Comments
Post a Comment