"My requirements" is a complete transparent status bar with the color of the status bar changing in the same activity dynamically.
For this, I added getWindow().addFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
and in style.xml
<item name="android:windowTranslucentNavigation">true</item> <item name="android:windowTranslucentStatus">false</item>
So it works fine, but I need to adjust the screen when the soft keyboard opens. Therefore, I tried android:windowSoftInputMode="adjustPan|adjustResize" , but the screen did not change or scroll. Anyone can help me with this.
source share