titanium-sdk icon indicating copy to clipboard operation
titanium-sdk copied to clipboard

Android: invalid id

Open m1ga opened this issue 2 years ago • 3 comments

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

  • [X] I have searched the existing issues

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 avatar Apr 20 '22 20:04 m1ga

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

m1ga avatar Apr 20 '22 20:04 m1ga

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

hansemannn avatar Apr 20 '22 20:04 hansemannn

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

m1ga avatar Apr 25 '22 19:04 m1ga