List of usage examples for android.widget AdapterView getBottom
@ViewDebug.CapturedViewProperty public final int getBottom()
From source file:org.hedgewars.hedgeroid.Downloader.DownloadListFragment.java
public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) { DownloadPackage task = (DownloadPackage) arg0.getAdapter().getItem(position); /*/*from w w w . j av a2s. c om*/ FragmentTransaction ft = getFragmentManager().beginTransaction(); Fragment prev = getFragmentManager().findFragmentByTag("dialog"); //remove any old dialogs if(prev != null) ft.remove(prev); ft.addToBackStack(null); //create a new dialog based on this task DialogFragment newFragment = DownloadDialogFragment.newInstance(task); //show it newFragment.show(ft, "dialog"); */ targetView = arg1; //determine state int min = arg0.getTop(); int max = arg0.getBottom(); int top = targetView.getTop(); previousXCoord = top; for (OnItemMovementListener listener : listeners) { listener.onNewItemSelected(task, top, min, max, targetView.getHeight() * 2); } }