EXACTLY:表示设置了精确的值,一般当childView设置其宽、高为精确值、match_parent时,ViewGroup会将其设置为EXACTLY;

AT_MOST:表示子布局被限制在一个最大值内,一般当childView设置其宽、高为wrap_content时,ViewGroup会将其设置为AT_MOST;

UNSPECIFIED:表示子布局想要多大就多大,一般出现在AadapterView的item的heightMode中、ScrollView的childView的heightMode中;此种模式比较少见。

相关文章:

  • 2021-08-31
  • 2021-10-31
  • 2021-12-17
  • 2021-09-14
  • 2021-05-06
  • 2022-01-13
猜你喜欢
  • 2022-12-23
  • 2021-09-30
  • 2021-09-01
  • 2021-08-04
  • 2021-06-23
  • 2021-12-20
相关资源
相似解决方案