Exemple #1
0
 /// <summary>Create from an existing xml block native object.</summary>
 /// <remarks>
 /// Create from an existing xml block native object.  This is
 /// -extremely- dangerous -- only use it if you absolutely know what you
 /// are doing!  The given native object must exist for the entire lifetime
 /// of this newly creating XmlBlock.
 /// </remarks>
 internal XmlBlock(android.content.res.AssetManager assets, android.content.res.XmlBlock.NativeXmlBlock
                   xmlBlock)
 {
     mAssets  = assets;
     mNative  = xmlBlock;
     mStrings = new android.content.res.StringBlock(nativeGetStringBlock(xmlBlock), false
                                                    );
 }
Exemple #2
0
		internal void makeStringBlocks(bool copyFromSystem)
		{
			int sysNum = copyFromSystem ? sSystem.mStringBlocks.Length : 0;
			int num = getStringBlockCount();
			mStringBlocks = new android.content.res.StringBlock[num];
			{
				for (int i = 0; i < num; i++)
				{
					if (i < sysNum)
					{
						mStringBlocks[i] = sSystem.mStringBlocks[i];
					}
					else
					{
						mStringBlocks[i] = new android.content.res.StringBlock(getNativeStringBlock(i), true
							);
					}
				}
			}
		}
Exemple #3
0
		/// <summary>Create from an existing xml block native object.</summary>
		/// <remarks>
		/// Create from an existing xml block native object.  This is
		/// -extremely- dangerous -- only use it if you absolutely know what you
		/// are doing!  The given native object must exist for the entire lifetime
		/// of this newly creating XmlBlock.
		/// </remarks>
		internal XmlBlock(android.content.res.AssetManager assets, android.content.res.XmlBlock.NativeXmlBlock
			 xmlBlock)
		{
			mAssets = assets;
			mNative = xmlBlock;
			mStrings = new android.content.res.StringBlock(nativeGetStringBlock(xmlBlock), false
				);
		}