Add BottomSheetBehavior to formatting toolbar

Desktop / LibreOffice - brainbreaker [gmail.com] - 19 April 2017 08:45 EDT

This commit adds the BottomSheetBehavior to the formatting toolbar appearing from bottom. CoordinatorLayout replaces the RelativeLayout in activity_main and bottom toolbar is made the child of it. Also, Add 'adjustPan' option to LibreOfficeMainActivity's windowSoftInputMode flag so as to prevent soft keyboard from pushing the views up

Change-Id: Ic9999c1177ac238bc7c482a69daec4e629fe6d93 Reviewed-on: https://gerrit.libreoffice.org/35768

78098b8 Add BottomSheetBehavior to formatting toolbar
android/source/AndroidManifest.xml | 2 +-
android/source/res/layout/activity_main.xml | 8 ++---
android/source/res/layout/toolbar_bottom.xml | 5 +++-
.../org/libreoffice/LibreOfficeMainActivity.java | 35 ++++++++++++----------
4 files changed, 29 insertions(+), 21 deletions(-)

Upstream: cgit.freedesktop.org


  • Share