Dear Developer 

I am making and test preparation android apps and the following image would 
be mine dashboard , 

I am facing some difficulty while implementing the functionality .I can 
 implement any view that fulfill my requisite ie, the view should be 
vertically scroll-able and the item that are like practice ,mocktest ,study 
and notes are horizontally scroll-able , How ever this is not possible in 
android a nesting a scrolling is not recommended . I have implement by 
creating a parent view  as Scrollview and overriding the 
onIterceptTouchEvent () method to return false when scroll in X direction 
.the I have added view to it which are Horizontal view .

by doing this I implemented the look and feel functionality like the 
ScrollView Scroll when moves in Y  direction and horizontal View Moves when 
scroll in X direction .


<https://lh3.googleusercontent.com/-a1oqz6SKc8w/UEWyvJBNO_I/AAAAAAAAALo/EdHNAbfdFmo/s1600/Dashboard.png>



Now the problem arise that how do I gonna catch the Touch event for any 
view when the deviation in scrolling is min. i,e when I touch a view ,,, ie 
notes the Notes Activity should open ,, but when ever i touch the event are 
passed to parent Scrolling View and it then check that it not Scrolling in 
Y direction then it return false;but how do I handle touch event for item 
click on Horizontal View.(when the touch event occur not the Move , but the 
gesture detector always have two motion event point .as we dont pin top to 
single point )

-- 
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, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to