Android Question Bug in Transculent statusbar

Pooya1

Active Member
Licensed User
Hi
I use below code for material them
All things is good
I want to TranslucentStatusBar One of activities and my output is picture that i attach it and show problem
In bottom of activity,i have free space as much as the statusbar height
Why?
B4X:
CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light">
        <item name="colorPrimary">@color/Primary</item>
        <item name="colorPrimaryDark">@color/PrimaryDark</item>
        <item name="colorAccent">#090a10</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="android:windowDisablePreview">true</item>
    </style>
</resources>
)
 

Attachments

  • Untitled-1.jpg
    Untitled-1.jpg
    69.6 KB · Views: 271

Erel

B4X founder
Staff member
Licensed User
Longtime User
It can happen when there are activities with different heights. It looks similar to the issue where one activity is full screen and the others are not on older versions of Android. It is related to the way Android sets the activity height.

Try to add the HeightChanged event with IME library: https://www.b4x.com/android/forum/t...-keyboard-with-the-ime-library.14832/#content
Is it raised when you show that activity?
 
Upvote 0

Pooya1

Active Member
Licensed User
It can happen when there are activities with different heights. It looks similar to the issue where one activity is full screen and the others are not on older versions of Android. It is related to the way Android sets the activity height.

Try to add the HeightChanged event with IME library: https://www.b4x.com/android/forum/t...-keyboard-with-the-ime-library.14832/#content
Is it raised when you show that activity?
Yes It is raised and it is OK now
Thanks so much so much
B4X:
Sub ime_HeightChanged (NewHeight As Int, OldHeight As Int)
    Activity.Height = NewHeight
End Sub
 
Upvote 0
Top