[android] PercentLayout [android] PercentLayout https://blog.stylingandroid.com/percent-part-1 -LinearLayout 의 weight 로 해결할 수 있는데 왜 PercentLayout 이 필요할까? parent 가 LinearLayout 이 아닌데 percent 기준으로 view 의 layout 하거나 size 를 구성할 일이 있을 것이다. nested weight 는 cost 가 꽤 크지만(weight 자체가 2번 measure), PercentLayout 은 그렇지 않다. -PercentLayout 은 2가지 타입이 있다. PercentRelativeLayout 과 PercentFrameLayout기본적인 동작은 RelativeLayout 과 FrameLayout 과.. 2019. 1. 25. 반응형 이전 1 다음