/development/samples/devbytes/animation/MultiPropertyAnimations/src/com/example/android/multipropertyanimations/ |
D | MultiPropertyAnimations.java | 25 import android.view.View; 52 public void runValueAnimator(final View view) { in runValueAnimator() argument 58 view.setTranslationX(TX_START + fraction * (TX_END - TX_START)); in runValueAnimator() 59 view.setTranslationY(TY_START + fraction * (TY_END - TY_START)); in runValueAnimator() 70 public void runViewPropertyAnimator(View view) { in runViewPropertyAnimator() argument 71 view.animate().translationX(TX_END).translationY(TY_END); in runViewPropertyAnimator() 77 public void runObjectAnimators(View view) { in runObjectAnimators() argument 78 ObjectAnimator.ofFloat(view, View.TRANSLATION_X, TX_END).start(); in runObjectAnimators() 79 ObjectAnimator.ofFloat(view, View.TRANSLATION_Y, TY_END).start(); in runObjectAnimators() 87 public void runObjectAnimator(View view) { in runObjectAnimator() argument [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | GraphicsActivity.java | 21 import android.view.View; 22 import android.view.ViewGroup; 34 public void setContentView(View view) { in setContentView() argument 37 vg.addView(view); in setContentView() 38 view = vg; in setContentView() 41 super.setContentView(view); in setContentView()
|
/development/apps/Development/src/com/android/development/ |
D | ArrayAdapter.java | 20 import android.view.View; 21 import android.view.ViewGroup; 22 import android.view.LayoutInflater; 40 public abstract void bindView(View view, E item); in bindView() argument 63 View view; in getView() local 65 view = mInflater.inflate(mLayoutRes, parent, false); in getView() 67 view = convertView; in getView() 69 bindView(view, mList.get(position)); in getView() 70 return view; in getView()
|
/development/samples/devbytes/animation/SquashAndStretch/src/com/example/squashandstretch/ |
D | SquashAndStretch.java | 25 import android.view.Menu; 26 import android.view.MenuItem; 27 import android.view.View; 28 import android.view.ViewGroup; 29 import android.view.animation.AccelerateInterpolator; 30 import android.view.animation.DecelerateInterpolator; 74 public void onButtonClick(View view) { in onButtonClick() argument 78 view.setPivotX(view.getWidth() / 2); in onButtonClick() 79 view.setPivotY(view.getHeight()); in onButtonClick() 83 mContainer.getHeight() - view.getHeight()); in onButtonClick() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | SearchViewAlwaysVisible.java | 17 package com.example.android.apis.view; 26 import android.view.Menu; 27 import android.view.MenuInflater; 28 import android.view.View; 29 import android.view.Window;
|
D | LayoutAnimation2.java | 17 package com.example.android.apis.view; 21 import android.view.animation.AlphaAnimation; 22 import android.view.animation.Animation; 23 import android.view.animation.AnimationSet; 24 import android.view.animation.LayoutAnimationController; 25 import android.view.animation.TranslateAnimation;
|
D | List13.java | 17 package com.example.android.apis.view; 22 import android.view.LayoutInflater; 23 import android.view.View; 24 import android.view.ViewGroup; 133 public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, in onScroll() argument 138 public void onScrollStateChanged(AbsListView view, int scrollState) { in onScrollStateChanged() argument 143 int first = view.getFirstVisiblePosition(); in onScrollStateChanged() 144 int count = view.getChildCount(); in onScrollStateChanged() 146 TextView t = (TextView)view.getChildAt(i); in onScrollStateChanged()
|
D | AutoComplete4.java | 17 package com.example.android.apis.view; 28 import android.view.LayoutInflater; 29 import android.view.View; 30 import android.view.ViewGroup; 65 final TextView view = (TextView) inflater.inflate( in newView() local 67 view.setText(cursor.getString(COLUMN_DISPLAY_NAME)); in newView() 68 return view; in newView() 72 public void bindView(View view, Context context, Cursor cursor) { in bindView() argument 73 ((TextView) view).setText(cursor.getString(COLUMN_DISPLAY_NAME)); in bindView()
|
/development/samples/Support7Demos/src/com/example/android/supportv7/app/ |
D | ActionBarSettingsActionProviderActivity.java | 23 import android.support.v4.view.ActionProvider; 24 import android.view.LayoutInflater; 25 import android.view.Menu; 26 import android.view.MenuItem; 27 import android.view.View; 73 View view = layoutInflater.inflate(R.layout.action_bar_settings_action_provider, null); in onCreateActionView() local 74 ImageButton button = (ImageButton) view.findViewById(R.id.button); in onCreateActionView() 82 return view; in onCreateActionView()
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | ActionBarSettingsActionProviderActivity.java | 23 import android.view.ActionProvider; 24 import android.view.LayoutInflater; 25 import android.view.Menu; 26 import android.view.MenuItem; 27 import android.view.View; 89 View view = layoutInflater.inflate(R.layout.action_bar_settings_action_provider, null); in onCreateActionView() local 90 ImageButton button = (ImageButton) view.findViewById(R.id.button); in onCreateActionView() 98 return view; in onCreateActionView()
|
D | QuickContactsDemo.java | 27 import android.view.View; 28 import android.view.ViewGroup; 76 public void bindView(View view, Context context, Cursor cursor) { in bindView() argument 77 final ContactListItemCache cache = (ContactListItemCache) view.getTag(); in bindView() 89 View view = super.newView(context, cursor, parent); in newView() local 91 cache.nameView = (TextView) view.findViewById(R.id.name); in newView() 92 cache.photoView = (QuickContactBadge) view.findViewById(R.id.badge); in newView() 93 view.setTag(cache); in newView() 95 return view; in newView()
|
D | FragmentContextMenu.java | 25 import android.view.ContextMenu; 26 import android.view.LayoutInflater; 27 import android.view.Menu; 28 import android.view.MenuItem; 29 import android.view.View; 30 import android.view.ViewGroup; 31 import android.view.ContextMenu.ContextMenuInfo;
|
/development/samples/CrossCompatibility/src/com/example/android/touchexample/ |
D | TouchExampleActivity.java | 20 import android.view.ViewGroup; 28 TouchExampleView view = new TouchExampleView(this); in onCreate() local 29 view.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, in onCreate() 32 setContentView(view); in onCreate()
|
/development/samples/devbytes/animation/ListViewItemAnimations/src/com/example/android/listviewitemanimations/ |
D | ListViewItemAnimations.java | 28 import android.view.MotionEvent; 29 import android.view.View; 30 import android.view.ViewConfiguration; 31 import android.view.ViewTreeObserver; 32 import android.view.animation.AlphaAnimation; 33 import android.view.animation.Animation; 34 import android.view.animation.Animation.AnimationListener; 35 import android.view.animation.AnimationSet; 36 import android.view.animation.TranslateAnimation; 185 private void animateSwipe(final View view, float endX, long duration, final boolean remove) { in animateSwipe() argument [all …]
|
D | StableArrayAdapter.java | 23 import android.view.View; 24 import android.view.ViewGroup; 54 View view = super.getView(position, convertView, parent); in getView() local 55 if (view != convertView) { in getView() 57 view.setOnTouchListener(mTouchListener); in getView() 59 return view; in getView()
|
/development/samples/devbytes/animation/ToonGame/src/com/example/android/toongame/ |
D | ToonGame.java | 29 import android.view.MotionEvent; 30 import android.view.View; 31 import android.view.View.OnTouchListener; 32 import android.view.ViewGroup; 33 import android.view.ViewTreeObserver; 34 import android.view.animation.AccelerateInterpolator; 35 import android.view.animation.DecelerateInterpolator; 36 import android.view.animation.LinearInterpolator; 138 public void play(View view) { in play() argument 154 view.removeCallbacks(mSquishRunnable); in play() [all …]
|
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/ |
D | StableArrayAdapter.java | 23 import android.view.View; 24 import android.view.ViewGroup; 54 View view = super.getView(position, convertView, parent); in getView() local 55 if (view != convertView) { in getView() 57 view.setOnTouchListener(mTouchListener); in getView() 59 return view; in getView()
|
/development/samples/HelloActivity/src/com/example/android/helloactivity/ |
D | HelloActivity.java | 21 import android.view.View; 22 import android.view.WindowManager; 38 View view = getLayoutInflater().inflate(R.layout.hello_activity, null); in onCreate() local 39 setContentView(view); in onCreate() 44 view.setOnSystemUiVisibilityChangeListener(new View.OnSystemUiVisibilityChangeListener() { in onCreate()
|
/development/ndk/platforms/android-9/samples/native-audio/src/com/example/nativeaudio/ |
D | NativeAudio.java | 23 import android.view.View; 24 import android.view.View.OnClickListener; 72 public void onItemSelected(AdapterView<?> parent, View view, int pos, long id) { in onCreate() 85 public void onClick(View view) { in onCreate() 92 public void onClick(View view) { in onCreate() 99 public void onClick(View view) { in onCreate() 107 public void onClick(View view) { in onCreate() 117 public void onClick(View view) { in onCreate() 130 public void onClick(View view) { in onCreate() 138 public void onClick(View view) { in onCreate() [all …]
|
/development/samples/devbytes/animation/ViewAnimations/src/com/example/android/viewanimations/ |
D | ViewAnimations.java | 21 import android.view.View; 22 import android.view.animation.AlphaAnimation; 23 import android.view.animation.Animation; 24 import android.view.animation.AnimationSet; 25 import android.view.animation.AnimationUtils; 26 import android.view.animation.RotateAnimation; 27 import android.view.animation.ScaleAnimation; 28 import android.view.animation.TranslateAnimation; 91 private void setupAnimation(View view, final Animation animation, in setupAnimation() argument 93 view.setOnClickListener(new View.OnClickListener() { in setupAnimation()
|
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
D | UrlImageBinder.java | 21 import android.view.View; 38 public boolean bind(View view, Cursor cursor, int columnIndex) { in bind() argument 39 if (view instanceof ImageView) { in bind() 41 imageDownloader.download(url, (ImageView) view); in bind()
|
/development/samples/Support4Demos/src/com/example/android/supportv4/content/ |
D | FileProviderExample.java | 25 import android.view.View; 46 public void onShareFileClick(View view) { in onShareFileClick() argument 51 saveThumbnail(view, file); in onShareFileClick() 64 private void saveThumbnail(View view, File file) { in saveThumbnail() argument 66 view.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888); in saveThumbnail() 68 view.draw(canvas); in saveThumbnail()
|
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
D | FragmentContextMenuSupport.java | 25 import android.view.ContextMenu; 26 import android.view.ContextMenu.ContextMenuInfo; 27 import android.view.LayoutInflater; 28 import android.view.Menu; 29 import android.view.MenuItem; 30 import android.view.View; 31 import android.view.ViewGroup;
|
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/ |
D | ContentFragment.java | 30 import android.view.ActionMode; 31 import android.view.DragEvent; 32 import android.view.LayoutInflater; 33 import android.view.Menu; 34 import android.view.MenuInflater; 35 import android.view.MenuItem; 36 import android.view.View; 37 import android.view.View.OnClickListener; 38 import android.view.ViewGroup; 39 import android.view.Window; [all …]
|
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/ |
D | ActionBarHelperHoneycomb.java | 22 import android.view.LayoutInflater; 23 import android.view.Menu; 24 import android.view.MenuInflater; 25 import android.view.MenuItem; 26 import android.view.View;
|