简体   繁体   中英

Floating Action Bar (not button) in Android

I am working on Floating Action Bar on top of keyboard if user clicks on one of the EditText . I couldn't start on it and that's why not have any code to present.

I am confused on how to approach this problem. I am considering to use bottom sheet but I am still not getting confidence on it (I think android should have something better to use as base for this view ).

I don't need any code snippet but need a direction. I am new to Android and before jumping to implementation, I needed a direction to start with.

Any suggestions? I am implementing something similar to Outlook app.

在此处输入图像描述

So this floating toolbar is just a view that contains icons to press. This view should be located as the bottommost view on the screen. If you're using a ConstraintLayout use app:layout_constraintBottom_toBottomOf="parent" .

And the android:windowSoftInputMode for hosting activity can be set to adjustResize ( doc ).

So when the keyboard opens it pushes this bottommost view up (and now this view is right above the keyboard).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM