1
Mon barre d'action cache une partie du fragment, voir image ci-dessous:Partie feuille de fond android se cache sous android barre d'outils lorsque élargi
Actionbar hides under toolbar when bottom sheet is expanded
<LinearLayout
android:id="@+id/bottom_sheet"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="android.support.design.widget.BottomSheetBehavior"
android:background="@android:color/white">
<include android:id="@+id/itemised_bottom_sheet" layout="@layout/payment_itemised_list_layout" android:visibility="gone"/>
<include android:id="@+id/bottom_sheet_layout" layout="@layout/business_buttom_sheet_layout" android:visibility="gone"/>
</LinearLayout>
essayé mais cela n'a pas fonctionné pour moi. Qu'est-ce que l'astuce était de baisser la barre d'outils Android pour permettre la visualisation de l'écran entier en plein écran sans interruption de la barre d'outils. Exemple de code ci-dessous –
'if (Build.VERSION.SDK_INT> = Build.VERSION_CODES.LOLLIPOP) { si (dim) { getWindow(). SetStatusBarColor (ContextCompat.getColor (this, android.R.color.transparent)); } else { getWindow(). SetStatusBarColor (ContexteCompat.getColor (this, getThemedResId (R.attr.colorPrimaryDark))); } // getWindow(). SetStatusBarColor (dimContextCompat.getColor (this, Color.TRANSPARENT): ContextCompat.getColor (this, getThemedResId (R.attr.colorPrimaryDark))); } ' –