Witajcie przyjaciele Chcę wiedzieć czy mogę zmienić kolor paska statusu lub uczynić go całkowicie przezroczystym.Potrzebujesz w pełni przezroczystego paska stanu
Próbowałem tak wiele rzeczy, ale nie mogę się w pełni przezroczysty pasek stanu, więc tutaj jest mój kod ..
V21/style.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowNoTitle">true</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowTranslucentNavigation">true</item>
</style>
</resources>
i style.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
</resources>
po nim ekran jest wyświetlany jako ...
i chcę to tak ..
może ktoś pomóc? Dzięki.
gdzie umieścić ten kod szesnastkowy? ponieważ nie wiem nic o kodzie szesnastkowym. – Sourabh
wstaw to tutaj @ color/colorPrimary put # 00ffffff spróbuj kolejnej transpernacy –
Dzięki @Damini Mehra – Sourabh