Android Question targetSdkVersion 36 & IME_HeightChange

fbritop

Well-Known Member
Licensed User
Longtime User
I'm testing beta 13.40.
IME event was never fired.

I started unpacking bit my bit my app, until I found that the event is not raised when either:

The manifest contains the item
B4X:
<item name="android:windowTranslucentStatus">true</item>

Here:

B4X:
SetApplicationAttribute(android:theme, "@style/Custom")
CreateResource(values-v20, theme.xml,
<resources>
      <style name="Custom" parent="@android:style/Theme.Material.Light.NoActionBar">
    <item name="android:windowTranslucentNavigation">false</item>
    <item name="android:windowBackground">@android:color/transparent</item>
    <item name="android:backgroundDimEnabled">false</item>
    <item name="android:forceDarkAllowed">false</item>
    <item name="android:windowLightStatusBar">false</item>
    <item name="android:windowOptOutEdgeToEdgeEnforcement">false</item>   
    <item name="android:windowTranslucentStatus">true</item> '<-- If removed event if fired'     
  </style>
  <color name="icon">#1386FF</color>
</resources>
)

Also if I remove that line from the manifest, then it gets trapped in other Main Sub:

B4X:
Sub Activity_WindowFocusChanged(HasFocus As Boolean)
    If HasFocus Then
        Try
            Dim jo As JavaObject = Activity
            Sleep(300)
            jo.RunMethod("setSystemUiVisibility", Array As Object(5894)) '3846 - non-sticky
        Catch
            xc.logd(LastException)
        End Try       
    End If
End Sub

Anyone with the same issue on Beta?

If both of this conditions are taken out of the code, ChangeHeight is raised correctly
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
The IME Example has been updated with to support SDK 35

 
Upvote 0

fbritop

Well-Known Member
Licensed User
Longtime User
The IME Example has been updated with to support SDK 35

Thanks
But that example also does not consume the IME Keyboard event if you add "windowTranslucentStatus", which I need it because my App goes on full screen, making the nav buttons slide down when the app is in focus.
 
Upvote 0

fbritop

Well-Known Member
Licensed User
Longtime User
Thanks
But that example also does not consume the IME Keyboard event if you add "windowTranslucentStatus", which I need it because my App goes on full screen, making the nav buttons slide down when the app is in focus.

Hi
Here I have attached a project where I added "windowTranslucentStatus" to the maniest and it does not consume the event
 

Attachments

  • IME_Example2.zip
    11.7 KB · Views: 42
Upvote 0

b4x-de

Active Member
Licensed User
Longtime User
Please see this post here in thread
 
Upvote 0

b4x-de

Active Member
Licensed User
Longtime User
I downloaded v13.40 and unziped command line tools and resources. In resources_7_25.zip is the folder platform android-36 contained. I assume this is the reason why we discuss SDK 36 here.
 
Upvote 0

fbritop

Well-Known Member
Licensed User
Longtime User
Well, if its 35 or 36, we ran into the same problem we are discussing (IME HeightChange Event).

I already tested on both SDK 35 annd 36 and the problem is the same

Partial solution was found at post #5 an its thread:

Currently investigating any side pits with the solution provided by @b4x-de .

Thanks
 
Upvote 0
Top