목록전체 글 (132)
Foggy day
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/IJ1no/btqRxZoGkJ8/7kBfcrP1yotLi83Zo0rjiK/img.png)
This post is the example of composite design pattern without detail explanation. If you know definition or concept of composite design pattern, I recommend searching other articles on Google. Some explanations are commented out in the code. Classes used 1. AbstractExpression abstract public class AbstractExpression { public abstract int operate(); } 2. AbstractOperationExpression abstract public..
Normal viewpager does not have the wrapContent attribute applied. However, someTimes we need to set height of the ViewPager to match the contents. So I created a CustomViewPager class that extends ViewPager and The CustomViewPager allows you to flexibly set height of ChildViews. To understand this post, you must have a basic understanding of ViewPager. Video preview 1. CustomViewPager First of a..