enter image description here

How to make sure that the middle button is not pressed. I use TabLayout

  • disable tried? - Yuriy SPb
  • @YuriSPb disable not found. For TabItem, there is no enable parameter in xml, otherwise everything would be simple - Andro
  • 2
    it means you have to climb into the sorts and look. but it should look something like this ((ViewGroup)tabLayout.getChildAt(0)).getChildAt(1).setEnable(false) Only add all sorts of checks, or it may not be something - andreich
  • @andreich, but through xml how? - Andro
  • I think that in any way -

1 answer 1

it means you have to climb into the sorts and look. but it should look something like this ((ViewGroup) tabLayout.getChildAt (0)). getChildAt (1) .setEnable‌ (false) Only add all sorts of checks, but it may not be something