• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

development


Commit MetaInfo

Revisionbff338e3e95c35c619e8cba4f3c8154665500e3f (tree)
Zeit2011-01-08 09:38:12
AutorChristopher Tate <ctate@goog...>
CommiterAndroid Git Automerger

Log Message

am 7f68ce1a: Rename drag "thumbnail" to the drag "shadow"

* commit '7f68ce1a1913bb8ffa13cf518b0daaa1bcf5eb4d':

Rename drag "thumbnail" to the drag "shadow"

Ändern Zusammenfassung

Diff

--- a/samples/ApiDemos/src/com/example/android/apis/view/DraggableDot.java
+++ b/samples/ApiDemos/src/com/example/android/apis/view/DraggableDot.java
@@ -52,7 +52,7 @@ public class DraggableDot extends View {
5252 CharSequence mLegend;
5353
5454 static final int ANR_NONE = 0;
55- static final int ANR_THUMBNAIL = 1;
55+ static final int ANR_SHADOW = 1;
5656 static final int ANR_DROP = 2;
5757
5858 void sleepSixSeconds() {
@@ -63,21 +63,21 @@ public class DraggableDot extends View {
6363 } while (SystemClock.uptimeMillis() < start + 6000);
6464 }
6565
66- // Thumbnail builder that can ANR if desired
67- class ANRThumbBuilder extends DragThumbnailBuilder {
66+ // Shadow builder that can ANR if desired
67+ class ANRShadowBuilder extends DragShadowBuilder {
6868 boolean mDoAnr;
6969
70- public ANRThumbBuilder(View view, boolean doAnr) {
70+ public ANRShadowBuilder(View view, boolean doAnr) {
7171 super(view);
7272 mDoAnr = doAnr;
7373 }
7474
7575 @Override
76- public void onDrawThumbnail(Canvas canvas) {
76+ public void onDrawShadow(Canvas canvas) {
7777 if (mDoAnr) {
7878 sleepSixSeconds();
7979 }
80- super.onDrawThumbnail(canvas);
80+ super.onDrawShadow(canvas);
8181 }
8282 }
8383
@@ -136,7 +136,7 @@ public class DraggableDot extends View {
136136 setOnLongClickListener(new View.OnLongClickListener() {
137137 public boolean onLongClick(View v) {
138138 ClipData data = ClipData.newPlainText("dot", null, "Dot : " + v.toString());
139- v.startDrag(data, new ANRThumbBuilder(v, mAnrType == ANR_THUMBNAIL),
139+ v.startDrag(data, new ANRShadowBuilder(v, mAnrType == ANR_SHADOW),
140140 mLocalOnly, (Object)v);
141141 return true;
142142 }