Code examples for DragEvent

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
101:	switch (event.getAction()) { 
-
115:	mPocket.stash(event.getClipData()); 
Full Snippet Info
7
CodeRank
148:	switch (event.getAction()) 
-
173:	ClipData.Item item = event.getClipData().getItemAt(0); 
-
177:	View screen = (View) event.getLocalState(); 
-
180:	int posX = Math.round(event.getX() - screen.getMeasuredWidth() / 2); 
181:	int posY = Math.round(event.getY() - screen.getMeasuredHeight() / 2); 
Full Snippet Info
6
CodeRank
44:	switch (event.getAction()) { 
-
47:	View view = (View) event.getLocalState(); 
-
54:	view.setX((int)event.getX() + 5 - view.getWidth() / 2); 
55:	view.setY((int)event.getY() + 5 - view.getHeight() / 2); 
Full Snippet Info
6
CodeRank
36:	int action = event.getAction(); 
-
58:	event.getX() + ", " + event.getY()); 
-
67:	ClipData data = event.getClipData(); 
Full Snippet Info
6
CodeRank
38:	int action = event.getAction(); 
-
61:	"drag proceeding in dropTarget: " + event.getX() 
62:	+ ", " + event.getY()); 
-
71:	ClipData data = event.getClipData(); 
Full Snippet Info
6
CodeRank
42:	int dragAction = dragEvent.getAction(); 
-
44:	ListViewItem dragView = (ListViewItem) dragEvent.getLocalState(); 
-
60:	return !dragEvent.getResult(); 
Full Snippet Info
5
CodeRank
100:	boolean flag = super.onDrag(v, event); 
101:	switch (event.getAction()) { 
Full Snippet Info
5
CodeRank
88:	int action = event.getAction(); 
89:	float x = event.getX(); 
90:	float y = event.getY(); 
Full Snippet Info
5
CodeRank
103:	int action = event.getAction(); 
-
111:	if (event.getY() < vCenter) { 
-
122:	mDragDropListener.onDragLocation(pos, (int)event.getY(), vCenter); 
-
134:	int dragItemPosition = ((Integer)event.getLocalState()); 
-
137:	if (event.getY() < vCenter) { 
Full Snippet Info
5
CodeRank
124:	View view = (View) event.getLocalState(); 
-
127:	switch (event.getAction()) { 
-
166:	if (!event.getResult()) { 
Full Snippet Info
5
CodeRank
153:	int action = event.getAction(); 
154:	switch (event.getAction()) { 
-
171:	View view = (View) event.getLocalState(); 
-
187:	TextView view3 = (TextView) event.getLocalState(); 
-
202:	View view2 = (View) event.getLocalState(); 
-
216:	if (dropEventNotHandled(event)) { 
217:	View view2 = (View) event.getLocalState(); 
Full Snippet Info
5
CodeRank
78:	final int action = event.getAction(); 
-
102:	ClipData.Item item = event.getClipData().getItemAt(0); 
Full Snippet Info
5
CodeRank
58:	int action = event.getAction(); 
59:	switch (event.getAction()) { 
-
71:	View view = (View) event.getLocalState(); 
Full Snippet Info
5
CodeRank
25:	final int action = event.getAction(); 
-
70:	ClipData.Item item = event.getClipData().getItemAt(0); 
Full Snippet Info
5
CodeRank
43:	float x = e.getX(); 
44:	float y = e.getY(); 
Full Snippet Info
5
CodeRank
57:	int action = event.getAction(); 
58:	switch (event.getAction()) { 
-
70:	View view = (View) event.getLocalState(); 
Full Snippet Info
5
CodeRank
28:	int action = event.getAction(); 
29:	switch (event.getAction()) { 
-
43:	View view = (View) event.getLocalState(); 
Full Snippet Info
5
CodeRank
19:	int action = event.getAction(); 
-
23:	if (event.getClipDescription().hasMimeType(ClipDescription.MIMETYPE_TEXT_PLAIN)) { 
Full Snippet Info
4
CodeRank
95:	if (event.getLocalState() != this) { 
-
99:	int action = event.getAction(); 
Full Snippet Info
4
CodeRank
101:	if(event.getAction() == DragEvent.ACTION_DRAG_ENTERED) { 
-
104:	else if(event.getAction() == DragEvent.ACTION_DRAG_EXITED) { 
-
107:	else if(event.getAction() == DragEvent.ACTION_DROP) { 
-
109:	ClipData clip = event.getClipData(); 
Full Snippet Info
4
CodeRank