In a tab navigator, I need to find out the x and y coordinates of each the tabs.
Is there a way to do that?
I am using HBox as Tab in the TabNavigator.
In a tab navigator, I need to find out the x and y coordinates
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want the positions of the tab buttons:
would return the tab at
ith position. Read its x and y.If you want the positions of tab contents, then use
tabNavigator.getChildAt(i)to get the container at i and read its x and y.