Android Tip : Touch Delegate As android developer docs say about this class : Helper class to handle situations where you want a view to have a larger touch area than its actual view bounds. You may require this in some obvious cases such as - when you want to keep the size of a view (let’s name it V ) small to suit your VD, but that size is too small to be conveniently used. The class is named touch delegate because we are explicitely delegating some extra touches to V which it won’t have gotten by default. How you do it? : First create an instance that takes the delegate view and the bounds that should be mapped to the delegate using the constructor : public TouchDelegate(Rect bounds, View delegateView) IMP : bounds here refers to local coordinates of the containing view that should be mapped to the delegate view. It depends on your use case on how you calculate this. For example, if you just want to increase the touch are of V in all directions, you could do something like :...
As the title says, I usually use this blog to put down what's currently going on in my life.