diff --git a/FluentUI.Demo/src/main/java/com/microsoft/fluentuidemo/demos/DrawerActivity.kt b/FluentUI.Demo/src/main/java/com/microsoft/fluentuidemo/demos/DrawerActivity.kt index 9257b039c..bec58dc9a 100644 --- a/FluentUI.Demo/src/main/java/com/microsoft/fluentuidemo/demos/DrawerActivity.kt +++ b/FluentUI.Demo/src/main/java/com/microsoft/fluentuidemo/demos/DrawerActivity.kt @@ -34,6 +34,9 @@ class DrawerActivity : DemoActivity(), OnDrawerContentCreatedListener { show_no_fade_bottom_dialog_button.setOnClickListener(this::clickListener) show_top_dialog_button.setOnClickListener(this::clickListener) show_no_fade_top_dialog_button.setOnClickListener(this::clickListener) + show_anchor_view_top_dialog_button.setOnClickListener(this::clickListener) + show_no_title_top_dialog_button.setOnClickListener(this::clickListener) + show_below_title_top_dialog_button.setOnClickListener(this::clickListener) show_left_dialog_button.setOnClickListener(this::clickListener) show_right_dialog_button.setOnClickListener(this::clickListener) } @@ -44,6 +47,9 @@ class DrawerActivity : DemoActivity(), OnDrawerContentCreatedListener { R.id.show_no_fade_bottom_dialog_button-> { drawerDialogDemo = DrawerDialog(this, DrawerDialog.BehaviorType.BOTTOM, 0.0f) } R.id.show_top_dialog_button-> { drawerDialogDemo = DrawerDialog(this, DrawerDialog.BehaviorType.TOP) } R.id.show_no_fade_top_dialog_button-> { drawerDialogDemo = DrawerDialog(this, DrawerDialog.BehaviorType.TOP, 0.0f) } + R.id.show_anchor_view_top_dialog_button-> { drawerDialogDemo = DrawerDialog(this,DrawerDialog.BehaviorType.TOP, anchorView = findViewById(R.id.show_anchor_view_top_dialog_button)) } + R.id.show_no_title_top_dialog_button-> { drawerDialogDemo = DrawerDialog(this, DrawerDialog.BehaviorType.TOP, titleBehavior = DrawerDialog.TitleBehavior.HIDE_TITLE ) } + R.id.show_below_title_top_dialog_button-> { drawerDialogDemo = DrawerDialog(this,DrawerDialog.BehaviorType.TOP, titleBehavior =DrawerDialog.TitleBehavior.BELOW_TITLE) } R.id.show_left_dialog_button-> { drawerDialogDemo = DrawerDialog(this, DrawerDialog.BehaviorType.LEFT) } R.id.show_right_dialog_button-> { drawerDialogDemo = DrawerDialog(this, DrawerDialog.BehaviorType.RIGHT) } } diff --git a/FluentUI.Demo/src/main/res/layout/activity_drawer.xml b/FluentUI.Demo/src/main/res/layout/activity_drawer.xml index 9ade628dc..8d20f078c 100644 --- a/FluentUI.Demo/src/main/res/layout/activity_drawer.xml +++ b/FluentUI.Demo/src/main/res/layout/activity_drawer.xml @@ -33,19 +33,26 @@ android:text="@string/no_fade_bottom_dialog_button" />