tidev / titanium-sdk

🚀 Native iOS and Android Apps with JavaScript
https://titaniumsdk.com/
Other
2.75k stars 1.21k forks source link

Android: invalid id #13412

Open m1ga opened 2 years ago

m1ga commented 2 years ago

I have searched and made sure there are no existing issues for the issue I am filing

Description

when I use

<Alloy>
    <TabGroup   style="Titanium.UI.Android.TABS_STYLE_BOTTOM_NAVIGATION">
        <Tab id="tab1" title="Home" >
            <Window></Window>
        </Tab>
    </TabGroup>
</Alloy>

I receive the Invalid ID 0x00000000 error (no crash or UI issue). Happens with 10.1.1.GA and 10.2.0

Another test:

<Alloy>
    <Window>
        <Menu platform="android">
            <MenuItem title="Test" />
        </Menu>
    </Window>
</Alloy>

Platform

Android

SDK version you are using

10.1.1.GA

m1ga commented 2 years ago

@hansemannn let's continue the search here. I can reproduce the error with the <TabGroup> example above BUT only with TABS_STYLE_BOTTOM_NAVIGATION

hansemannn commented 2 years ago

Very interesting. For me, adding a unique itemId to the menu item fixes the issue that happens on-focus for me.

m1ga commented 2 years ago

I have another app where the itemId fixed the issue too. Still unsure about the TabGroup :thinking: