What's the difference between android:height and android:layout_height?

后端 未结 4 589
独厮守ぢ
独厮守ぢ 2021-02-03 19:48

         


        
4条回答
  •  花落未央
    2021-02-03 20:23

    From playing about with this a bit, I think that layout_height is flexible - a preferred height but will still expand/shrink with the content - and height is a definite value.

    What's happening in your case is that the TextView is wrapping around the Test text but still using the 48dp paddingTop attribute.

提交回复
热议问题