title: How to Get the index of particular(custom) view from ViewGroup (FrameLayout) after doing onLongClick on the View
body: <p>Can someone help me with my Syntax? I am dynamically adding some views(custom view) to a FrameLayout that is already defined in XML. those custom view's are different type or same type. I'm able to add views to the screen but unable delete a particular view (either it is same type or different) from ViewGroup. those custom view having <code>onTouch()</code>.</p>
  
  <p>Here i'm facing problem : unable to trigger for <code>long click</code>, always takes <code>touch listener</code> </p>
  
  <p>I have to create two options here if user selects a view when long click on that </p>
  
  <ol>
  <li>change background color </li>
  <li>delete  view.</li>
  </ol>
  
  <p><strong>EDIT :</strong> according to <code>tao</code> suggestion i am able to get index of long pressed view if there is no touch listener's to view. but i have to implement touch listeners along with long press... </p>
  
  <p>How can I do this?</p>