コード例 #1
0
 /// <summary>Give back a previously retrieved StyledAttributes, for later re-use.</summary>
 /// <remarks>Give back a previously retrieved StyledAttributes, for later re-use.</remarks>
 public virtual void recycle()
 {
     lock (mResources.mTmpValue)
     {
         android.content.res.TypedArray cached = mResources.mCachedStyledAttributes;
         if (cached == null || cached.mData.Length < mData.Length)
         {
             mXml = null;
             mResources.mCachedStyledAttributes = this;
         }
     }
 }
コード例 #2
0
ファイル: TypedArray.cs プロジェクト: hakeemsm/XobotOS
		/// <summary>Give back a previously retrieved StyledAttributes, for later re-use.</summary>
		/// <remarks>Give back a previously retrieved StyledAttributes, for later re-use.</remarks>
		public virtual void recycle()
		{
			lock (mResources.mTmpValue)
			{
				android.content.res.TypedArray cached = mResources.mCachedStyledAttributes;
				if (cached == null || cached.mData.Length < mData.Length)
				{
					mXml = null;
					mResources.mCachedStyledAttributes = this;
				}
			}
		}