79543637

Date: 2025-03-29 17:32:01
Score: 0.5
Natty:
Report link

The code syntax below should properly solve your problem.

TabLayout tabLayout = ...;
if (tabLayout.getMeasuredHeight() == 0) tabLayout.measure(View.MeasureSpec.UNDEFINED, View.MeasureSpec.UNDEFINED);
int tabLayoutHeight = tabLayout.getMeasuredHeight();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Moz