목록Android (47)
Foggy day
This article is an example of LayoutParams. Sometimes, you want to change propertis of view like margin or width in code. It is for that. what we need to know to use LayoutParams is ViewGroup. There are FrameLayout, Linearlayout, ConstraintLayout and RelativeLayout as ViewGroup. we can include child view like TextView, Button, and EditText. To use LayoutParams, we have to access ViewGroup. If Vi..
When making app, we mostly use viewpager and tablayout, and appbar. Animation showing or hiding appbar in activity is not too difficult. But, Sometimes a slightly complicated UI bothers us. For example, there is a fragment A in the activity, and the AppBar, tablayout, and ViewPager ars in the A fragment. The VewPapger has fragments B, C, and D. In this structure what i want to do is an animation..
아래 링크의 글을 번역한 글입니다. vladsonkin.com/android-custom-view-extending-the-views/ Android Custom View: Extending The Views - vladsonkin.com Android has lots of different Views, and you can build almost any app with them. However, sometimes they will not fulfill your requirements, mostly if your design is filled with unusual elements and animations. To handle this case, Android gives us the pos vladson..
It is the sample of custom circle progressbar that use customview and valueanimation. If you want to use circle percent Progress, I recommend this sample. Additional explanations have been omitted. I left a little explanation in the code. But, It is not English. If you have any questions, please leave a comment. Video preview 1. CircleProgress @SuppressLint("ResourceAsColor") class CircleProgres..
이글은 아래 링크의 글을 번역한 글입니다. vladsonkin.com/ultimate-guide-to-android-custom-view/ Ultimate Guide To Android Custom View - vladsonkin.com Android has lots of standard views to cover all our needs in the app. But sometimes, the designers come up with some new UI elements, and the only way to implement it is by creating an Android Custom View. If this new UI element looks like some improved st vladsonk..
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..