Available Methods
- LayoutParams ( )
- addView ( )
- removeView ( )
- getChildCount ( )
- getChildAt ( )
- getContext ( )
- MarginLayoutParams ( )
- findViewById ( )
- removeAllViews ( )
- getChildMeasureSpec ( )
- indexOfChild ( )
- getWidth ( )
- setVisibility ( )
- setClipToPadding ( )
- setFitsSystemWindows ( )
- removeViewAt ( )
- setBackgroundColor ( )
- getHeight ( )
- setPadding ( )
- setLayoutParams ( )
- getTop ( )
- getLayoutParams ( )
- setTag ( )
- setOnClickListener ( )
- findViewWithTag ( )
- getTag ( )
- setBackgroundResource ( )
- getMeasuredHeight ( )
- offsetDescendantRectToMyCoords ( )
- setClipChildren ( )
- getParent ( )
- getId ( )
- getPaddingTop ( )
- getBottom ( )
- post ( )
- removeAllViewsInLayout ( )
- getResources ( )
- getMeasuredWidth ( )
- requestFocus ( )
- requestLayout ( )
- bringToFront ( )
- getLeft ( )
- invalidate ( )
- getPaddingBottom ( )
- setEnabled ( )
- setLayoutTransition ( )
- OnHierarchyChangeListener ( )
- getViewTreeObserver ( )
- getVisibility ( )
- getPaddingRight ( )
- setOnHierarchyChangeListener ( )
- getBackground ( )
- layout ( )
- setOnTouchListener ( )
- getScrollY ( )
- measure ( )
- setId ( )
- setPaddingRelative ( )
- setDrawingCacheEnabled ( )
- setTranslationY ( )
- FOCUS_BLOCK_DESCENDANTS
- getRight ( )
- getPaddingLeft ( )
- getScrollX ( )
- setBackground ( )
- setPivotY ( )
- removeViewInLayout ( )
- equals ( )
- getSystemUiVisibility ( )
- removeViews ( )
- dispatchTouchEvent ( )
- addOnAttachStateChangeListener ( )
- postInvalidate ( )
- requestChildFocus ( )
- getWindowVisibility ( )
- getLocationOnScreen ( )
- setBottom ( )
- generateLayoutParams ( )
- isShown ( )
- isInLayout ( )
- getWindowId ( )
- getOverlay ( )
Related Classes
- android.os.Bundle
- android.content.Context
- android.view.View
- android.util.Log
- android.widget.TextView
- android.content.Intent
- android.app.Activity
- android.view.LayoutInflater
- android.os.Build
- android.widget.Toast
- android.widget.ImageView
- android.graphics.Color
- android.os.Handler
- android.net.Uri
- android.widget.Button
- android.graphics.Bitmap
- android.text.TextUtils
- android.view.MotionEvent
- android.graphics.drawable.Drawable
- android.widget.LinearLayout
- android.support.annotation.Nullable
- android.widget.EditText
- android.support.annotation.NonNull
- android.annotation.SuppressLint
- android.content.DialogInterface
Java Code Examples for android.view.ViewGroup#getWindowId()
The following examples show how to use
android.view.ViewGroup#getWindowId() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Transition.java From android_9.0.0_r45 with Apache License 2.0 | 5 votes |
/** * Force the transition to move to its end state, ending all the animators. * * @hide */ void forceToEnd(ViewGroup sceneRoot) { ArrayMap<Animator, AnimationInfo> runningAnimators = getRunningAnimators(); int numOldAnims = runningAnimators.size(); if (sceneRoot != null) { WindowId windowId = sceneRoot.getWindowId(); for (int i = numOldAnims - 1; i >= 0; i--) { AnimationInfo info = runningAnimators.valueAt(i); if (info.view != null && windowId != null && windowId.equals(info.windowId)) { Animator anim = runningAnimators.keyAt(i); anim.end(); } } } }
Example 2
Source File: Transition.java From android_9.0.0_r45 with Apache License 2.0 | 4 votes |
/** * Called by TransitionManager to play the transition. This calls * createAnimators() to set things up and create all of the animations and then * runAnimations() to actually start the animations. */ void playTransition(ViewGroup sceneRoot) { mStartValuesList = new ArrayList<TransitionValues>(); mEndValuesList = new ArrayList<TransitionValues>(); matchStartAndEnd(mStartValues, mEndValues); ArrayMap<Animator, AnimationInfo> runningAnimators = getRunningAnimators(); int numOldAnims = runningAnimators.size(); WindowId windowId = sceneRoot.getWindowId(); for (int i = numOldAnims - 1; i >= 0; i--) { Animator anim = runningAnimators.keyAt(i); if (anim != null) { AnimationInfo oldInfo = runningAnimators.get(anim); if (oldInfo != null && oldInfo.view != null && oldInfo.windowId == windowId) { TransitionValues oldValues = oldInfo.values; View oldView = oldInfo.view; TransitionValues startValues = getTransitionValues(oldView, true); TransitionValues endValues = getMatchedTransitionValues(oldView, true); if (startValues == null && endValues == null) { endValues = mEndValues.viewValues.get(oldView); } boolean cancel = (startValues != null || endValues != null) && oldInfo.transition.isTransitionRequired(oldValues, endValues); if (cancel) { if (anim.isRunning() || anim.isStarted()) { if (DBG) { Log.d(LOG_TAG, "Canceling anim " + anim); } anim.cancel(); } else { if (DBG) { Log.d(LOG_TAG, "removing anim from info list: " + anim); } runningAnimators.remove(anim); } } } } } createAnimators(sceneRoot, mStartValues, mEndValues, mStartValuesList, mEndValuesList); runAnimators(); }