コード例 #1
0
ファイル: LayoutInflater.cs プロジェクト: hakeemsm/XobotOS
		/// <hide>for use by framework</hide>
		public virtual void setPrivateFactory(android.view.LayoutInflater.Factory2 factory
			)
		{
			mPrivateFactory = factory;
		}
コード例 #2
0
ファイル: LayoutInflater.cs プロジェクト: hakeemsm/XobotOS
		/// <summary>
		/// Create a new LayoutInflater instance that is a copy of an existing
		/// LayoutInflater, optionally with its Context changed.
		/// </summary>
		/// <remarks>
		/// Create a new LayoutInflater instance that is a copy of an existing
		/// LayoutInflater, optionally with its Context changed.  For use in
		/// implementing
		/// <see cref="cloneInContext(android.content.Context)">cloneInContext(android.content.Context)
		/// 	</see>
		/// .
		/// </remarks>
		/// <param name="original">The original LayoutInflater to copy.</param>
		/// <param name="newContext">The new Context to use.</param>
		protected internal LayoutInflater(android.view.LayoutInflater original, android.content.Context
			 newContext)
		{
			mContext = newContext;
			mFactory = original.mFactory;
			mFactory2 = original.mFactory2;
			mPrivateFactory = original.mPrivateFactory;
			mFilter = original.mFilter;
		}
コード例 #3
0
ファイル: LayoutInflater.cs プロジェクト: hakeemsm/XobotOS
		/// <summary>
		/// Like
		/// <see cref="setFactory(Factory)">setFactory(Factory)</see>
		/// , but allows you to set a
		/// <see cref="Factory2">Factory2</see>
		/// interface.
		/// </summary>
		public virtual void setFactory2(android.view.LayoutInflater.Factory2 factory)
		{
			if (mFactorySet)
			{
				throw new System.InvalidOperationException("A factory has already been set on this LayoutInflater"
					);
			}
			if (factory == null)
			{
				throw new System.ArgumentNullException("Given factory can not be null");
			}
			mFactorySet = true;
			if (mFactory == null)
			{
				mFactory = mFactory2 = factory;
			}
			else
			{
				mFactory = new android.view.LayoutInflater.FactoryMerger(factory, factory, mFactory
					, mFactory2);
			}
		}
コード例 #4
0
ファイル: LayoutInflater.cs プロジェクト: hakeemsm/XobotOS
			internal FactoryMerger(android.view.LayoutInflater.Factory f1, android.view.LayoutInflater
				.Factory2 f12, android.view.LayoutInflater.Factory f2, android.view.LayoutInflater
				.Factory2 f22)
			{
				mF1 = f1;
				mF2 = f2;
				mF12 = f12;
				mF22 = f22;
			}