コード例 #1
0
 internal void set(android.view.ViewTreeObserver.InternalInsetsInfo other)
 {
     contentInsets.set(other.contentInsets);
     visibleInsets.set(other.visibleInsets);
     touchableRegion.set(other.touchableRegion);
     mTouchableInsets = other.mTouchableInsets;
 }
コード例 #2
0
 public override bool Equals(object o)
 {
     try
     {
         if (o == null)
         {
             return(false);
         }
         android.view.ViewTreeObserver.InternalInsetsInfo other = (android.view.ViewTreeObserver
                                                                   .InternalInsetsInfo)o;
         if (mTouchableInsets != other.mTouchableInsets)
         {
             return(false);
         }
         if (!contentInsets.Equals(other.contentInsets))
         {
             return(false);
         }
         if (!visibleInsets.Equals(other.visibleInsets))
         {
             return(false);
         }
         return(touchableRegion.Equals(other.touchableRegion));
     }
     catch (System.InvalidCastException)
     {
         return(false);
     }
 }
コード例 #3
0
 /// <summary>Calls all listeners to compute the current insets.</summary>
 /// <remarks>Calls all listeners to compute the current insets.</remarks>
 internal void dispatchOnComputeInternalInsets(android.view.ViewTreeObserver.InternalInsetsInfo
                                               inoutInfo)
 {
     // NOTE: because of the use of CopyOnWriteArrayList, we *must* use an iterator to
     // perform the dispatching. The iterator is a safe guard against listeners that
     // could mutate the list by calling the various add/remove methods. This prevents
     // the array from being modified while we iterate it.
     java.util.concurrent.CopyOnWriteArrayList <android.view.ViewTreeObserver.OnComputeInternalInsetsListener
                                                > listeners = mOnComputeInternalInsetsListeners;
     if (listeners != null && listeners.size() > 0)
     {
         foreach (android.view.ViewTreeObserver.OnComputeInternalInsetsListener listener in
                  Sharpen.IterableProxy.Create(listeners))
         {
             listener.onComputeInternalInsets(inoutInfo);
         }
     }
 }
コード例 #4
0
 public void onComputeInternalInsets(android.view.ViewTreeObserver.InternalInsetsInfo
                                     info)
 {
     throw new System.NotImplementedException();
 }