The LinearLayout contains the Menu Item view, if there is a Menu Item view in LinearLayou, it will be reused in next show, If there is no enough menu item view in LinearLayout, the new one will be created. The problem as I described, the GONE menu item view has correct View Id which is provided in XML layout. they are cleared with 0 or -1 after PopupWindow is dismissed. I don't know what's happened, what's the mechanism of Android View design.
Your any help are appreciated!
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to firstname.lastname@example.org
To unsubscribe from this group, send email to
For more options, visit this group at
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/d/optout.