[android-developers] onInterceptTouchEvent and Gesture detector

2012-02-17 Thread harvinder
that GestureDetector handles all these low level events. I would like to not intercept the click event and pass that on to the children but handle the rest using gesture detector. thanks harvinder -- You received this message because you are subscribed to the Google Groups "Android Devel

[android-developers] Is there a way to link SearchViewCompat and Activity.onSearchRequested() i.e. search (hard)button

2012-01-30 Thread harvinder
the top, with SearchViewCompat. Any idea if it is doable? thanks harvinder -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group,

[android-developers] ViewPager MotionEvent changes between onInterceptTouchEvent and onTouchEvent

2012-01-26 Thread harvinder
getting changed to ACTION_UP. Could it be something to do with what I do in my custom ViewGroup? thanks harvinder -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegro

[android-developers] Re: How to implement scrolling for custom layout?

2012-01-19 Thread harvinder
I have looked into the listview and abslistview classes of android. Scrolling in not initiating a call on onMeasure or onLayout, but only invalidate. For some reason I am not been able to debug these classes (can put breakpoint only in abslistview but not listview). Where does children laid ou

[android-developers] How to get LayoutParams after inflating the view

2012-01-17 Thread harvinder
I have following code in my Adapter's getView(...) function View getView(int position, View

[android-developers] Re: How to implement scrolling for custom layout?

2012-01-15 Thread harvinder
well there are hundreds of view and I trust keeping *hundreds* of view in memory is not the wise thing to do. I believe the listview implementation in the android may also be reusing the views. -- You received this message because you are subscribed to the Google Groups "Android Developers" gro

[android-developers] Re: How to implement scrolling for custom layout?

2012-01-15 Thread harvinder
@ pskink The CustomView may have hundreds of children and it is not appropriate to create all the views and keep in the memory. So when the scrolling starts, to get the latest position displayed (with correct views) on the screen, I get the latest scroll position in onMeasure and onLayout and s

[android-developers] How to implement scrolling for custom layout?

2012-01-14 Thread harvinder
false; } @Override public void onLongPress(MotionEvent e) { // TODO Auto-generated method stub } } Thanks harvinder -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com

[android-developers] Difference between invalidate and requestLayout for Viewgroup

2012-01-12 Thread harvinder
It is my understanding is that when invalidate() is called on ViewGroup derived class onDraw gets called. However, when requestLayout is called onMeasure and onLayout gets called. Is my understanding correct? Truly harvinder -- You received this message because you are subscribed to the