[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. [android] Percent Support Library [android] Percent Support Library https://plus.google.com/+AndroidDevelopers/posts/C8oaLunpEEj -PercentFrameLayout, PercentRelativeLayout 이 생겨서 percent 기반한 layouting 을 할 수 있다. - -지원하는 attribute 들은..layout_widthPercentlayout_heightPercentlayout_marginTopPercentlayout_marginBottomPercentlayout_marginLeftPercentlayout_marginRightPercentlayout_marginStartPercentlayout_marginEndPercentlayout_aspectRa.. 2017. 9. 16. 반응형 이전 1 다음