[android-developers] Re: GridView

2009-01-03 Thread Erik Calissendorff
I'm interested in this question aswell, and how you can set the height of each row for that matter, would be nice not to have to reimplement the whole GridView. Regards, //Erik On Dec 9 2008, 10:42 am, Andriy Zakharchuk andriy.zakharc...@gmail.com wrote: Hello Xavier, what I'm trying to do

[android-developers] Re: Custom animation doesn't invalidate the area correctly

2008-10-16 Thread Erik Calissendorff
and like to get more details. Regards, //Erik On Sep 1, 11:00 pm, Erik Calissendorff [EMAIL PROTECTED] wrote: Hi again Romain and thanks for your quick responses, Let me try to explain the setup further: I have a rootView which contains a few ViewGroups. When an item is dragged

[android-developers] Re: Gesture detection

2008-10-11 Thread Erik Calissendorff
Hi Kingtut, I believe that this code should work for you, I use this solution in my Activity: @Override public boolean dispatchTouchEvent(MotionEvent ev) { boolean returnValue=false; returnValue=returnValue | mGestureDetector.onTouchEvent(ev); returnValue=returnValue |

[android-developers] How to enable getChildStaticTransformation in 1.0_r1

2008-10-03 Thread Erik Calissendorff
In 0.9 I used this.mGroupFlags |= FLAG_SUPPORT_STATIC_TRANSFORMATIONS; in a custom ViewGroup to enable my own implementation of getChildStaticTransformation(...) but since this.mGroupFlags is depreciated in the new release (1.0_r1) I wounder how I should enable getChildStaticTransformation(...)

[android-developers] How to enable getChildStaticTransformation in 1.0_r1

2008-10-03 Thread Erik Calissendorff
In 0.9 I used this.mGroupFlags |= FLAG_SUPPORT_STATIC_TRANSFORMATIONS; in a custom ViewGroup to enable my own implementation of getChildStaticTransformation(...) but since this.mGroupFlags is depreciated in the new release (1.0_r1) I wounder how I should enable getChildStaticTransformation(...)

[android-developers] Custom animation doesn't invalidate the area correctly

2008-09-01 Thread Erik Calissendorff
I'm creating a custom animation which extends Animation and overrides applyTransformation(float interpolatedTime, Transformation t) I'm also overriding getChildStaticTransformation(View child, Transformation t) in a rootView which I use for drag'n'drop. When I move a view outside of the drop

[android-developers] Re: Custom animation doesn't invalidate the area correctly

2008-09-01 Thread Erik Calissendorff
? It looks like you are simply not invalidating the drop parent correctly. On Mon, Sep 1, 2008 at 10:37 AM, Erik Calissendorff [EMAIL PROTECTED] wrote: I'm creating a custom animation which extends Animation and overrides applyTransformation(float interpolatedTime, Transformation t) I'm

[android-developers] Custom LayoutParams?

2008-09-01 Thread Erik Calissendorff
Hi, I have created a custom ViewGroup and would like to have a custom LayoutParams together with it so I can assign these to the children through the XML. I have created a custom LayoutParams class and added the following to my attrs.xml: declare-styleable name=LayoutParams attr

[android-developers] Drag Drop outside the parent ViewGroup

2008-08-22 Thread Erik Calissendorff
Hi I'm implementing some drag drop functionality. I'm currently having two problems: 1) When I drag the View outside of it's parent it's being clipped, I like to be able to drag the item around the whole window. 2) Z-order, I'm currently bringing the dragged View to the front but with the same

[android-developers] Re: I want to gain the coordinate when i touch on the screen,how to?

2008-08-21 Thread Erik Calissendorff
Did you try: event.getRawX() event.getRawY() On Aug 21, 3:48 am, China-jlu-wangliang [EMAIL PROTECTED] wrote: yeah,i have tried to use the functions that you said,but when i pressed on the button i can't get the raw coordinate. On 8月18日, 下午12时10分, andylau [EMAIL PROTECTED] wrote: hi, try

[android-developers] Re: Draw children manually in custom ViewGroup

2008-08-21 Thread Erik Calissendorff
and applies alpha. This is what Gallery does for instance. On Thu, Aug 14, 2008 at 5:15 AM, Erik Calissendorff [EMAIL PROTECTED] wrote: I'm trying to draw the children manually in my custom ViewGroup but the code below only displays the left top most child. I have tried not to clip