Android: determine the height of the ActionBar tab

No one can understand how I can determine the actual height of the Tab using the ActionBar in "NAVIGATION_MODE_TABS". I can determine the height of the ActionBar, but that does not include the height of the Tabs. I can also determine the height of the icon (I do not use text, but it would also be possible if I set the text on the tab.

But it seems that there is some padding or marker around the contents of the Tab, and I cannot extract it, so I cannot determine the actual height.

So can I somehow get this add-on / margin or is there another solution to get ActionBar height plus Tabs height?

+4
source share
1 answer

You can go to stackoverflow.com/a/9287224/1627599. I hope you understand. Hooray!

0
source

Source: https://habr.com/ru/post/1447704/


All Articles