]> git.ktnx.net Git - mobile-ledger.git/commit
separate FAB management in a helper class
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 3 Mar 2021 12:31:51 +0000 (12:31 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 3 Mar 2021 12:31:51 +0000 (12:31 +0000)
commitd63a611dce420b30fa0c0711eea1d02603945a43
treea1fb9b42dab7dff586ebeddba1cc9e54c4216b51
parent36b27f8294f563effd27b01d3b20e9fcaebf7fb4
separate FAB management in a helper class

CoordinatorLayout + FAB with "hide bottom view on scroll" behaviour
might seem to work, but there is a corner case when the view is just
large enough so that the FAB overlaps it, but not large enough to cause
scrolling and in this case it is possible to either be stuck with the
FAB over the bottom of the business area, or to hide the FAB without an
intuitive to make it pop up again

also, use single FAB for the Templates activity
app/src/main/java/net/ktnx/mobileledger/ui/FabManager.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/ui/MobileLedgerListFragment.java
app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java
app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java
app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsFragment.java
app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateListFragment.java
app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplatesActivity.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java
app/src/main/res/layout/activity_templates.xml