Pracuję nad małym projektem Android. Występują problemy podczas wyświetlania paska narzędzi pod paskiem stanu. Używam następujące config:zestaw systemowywindows nie działa windowtranslucentstatus koordynatorlayoutout
- wersja biblioteki Pomoc 23.2.0
- windowTranslucentStatus = true
<CollapsingToolbarLayout fitSystemWindows="true" ...>
<FrameLayout fitSystemWindows="true" ...>
<ViewPager>
....consists a fragment with framelayout and image
</ViewPager>
<Toolbar fitSystemWindows="true" ...>
</FrameLayout>
<CollapsingToolbarLayout fitSystemWindows="true"...>
.....
</AppBarLayout>
</CoordinatorLayout>`
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:fitsSystemWindows="true">
<android.support.design.widget.AppBarLayout
android:id="@+id/fragment_musicplayer_appBarlayout_test"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true">
<android.support.design.widget.CollapsingToolbarLayout
android:id="@+id/fragment_musicexplorer_album_collapsingtoolbarlayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
app:contentScrim="#eab22b"
app:expandedTitleMarginStart="48dp"
app:expandedTitleMarginEnd="64dp"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_collapseMode="parallax"
android:fitsSystemWindows="true">
<android.support.v4.view.ViewPager
android:id="@+id/fragment_musicplayer_viewpager_test"
android:layout_width="match_parent"
android:layout_height="450dp" />
<android.support.v7.widget.Toolbar
android:id="@+id/fragment_musicplayer_toolbar_test"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@android:color/transparent"
android:fitsSystemWindows="true" />
</FrameLayout>
</android.support.design.widget.CollapsingToolbarLayout>
Witam, spróbuję. Ogólnie myślę, robię wszystko dobrze, windowTranslucentStatus = true do wyświetlania Viewpager-Fragment za paska stanu i fitSystemWindows = true, aby wyświetlić pasek narzędzi poniżej paska stanu – Hans
@hata, po tylu próbuje zrobić półprzezroczysty pasek stanu pracy z układem Cordinator na KK, wydaje się, że powinniśmy pozwolić, aby pasek stanu był ciemny jak ICS i JB i tylko uczynić go przezroczystym lub półprzezroczystym dla 21+ :( –