I have been reading and applying the android design from this page:
http://developer.android.com/design/index.html
I want to use the following ‘animation’ (or whatever it is):
http://www.electronicsweekly.com/blogs/eyes-on-android-updates/2012/01/13/Android%20Design%202.jpg
can someone help me get started how to use these boundaries?
This is how i would do it:
setStaticTransformationsEnabled(true);in the constructoronTouchEvent(MotionEvent ev)to track the position of the fingergetChildStaticTransformation(View child, Transformation t)EDIT: now that i thought about it a bit longer you should do it a little bit differently.
getChildStaticTransformation(View child, Transformation t)butdrawChild(Canvas canvas, View child, long drawingTime)instead.this allows you to use the drawing cache api. (Example for that in my first link). This means that the child is first rendered into a bitmap improving drawing performance and allowing you to apply this linear blue to transparent gradient to the view
You can look here or here for an example how to use the Camera.
This is a project with an overscroll bounce effect.
To make the overscroll effect cool you should use an animations when the user releases the finger. Since i like the new android animation framework very much i would use nine old androids for that.
I guess is that implementing this effect properly would take at least 1-2 full days for an experienced android programmer.