BotomSheetDialog FabButton Anchor View not working as expected

后端 未结 1 1457
盖世英雄少女心
盖世英雄少女心 2021-01-17 03:11

Hi I am trying to anchor Fab button to BottomSheetDialog but it is not working. EDITED Here is My Dialog

public static class QuickInfoDialog         


        
相关标签:
1条回答
  • 2021-01-17 03:57

    You should use CoordinatorLayout as the direct parent of FAB and the View which is used as anchor for the FAB.

    Then the line app:layout_anchor="@id/app_bar_layout" means, this FAB is anchor to the View which has the id "app_bar_layout". But it seems you dont have any View with id "app_bar_layout.

    0 讨论(0)
提交回复
热议问题