Пример #1
0
 /// <summary>
 /// <p>Performs initialization common to prorgrammatic use and XML use of
 /// this widget.</p>
 /// </summary>
 private void initTableLayout()
 {
     if (mCollapsedColumns == null)
     {
         mCollapsedColumns = new android.util.SparseBooleanArray();
     }
     if (mStretchableColumns == null)
     {
         mStretchableColumns = new android.util.SparseBooleanArray();
     }
     if (mShrinkableColumns == null)
     {
         mShrinkableColumns = new android.util.SparseBooleanArray();
     }
     mPassThroughListener = new android.widget.TableLayout.PassThroughHierarchyChangeListener
                                (this);
     // make sure to call the parent class method to avoid potential
     // infinite loops
     base.setOnHierarchyChangeListener(mPassThroughListener);
     mInitialized = true;
 }
Пример #2
0
		/// <summary>
		/// <p>Performs initialization common to prorgrammatic use and XML use of
		/// this widget.</p>
		/// </summary>
		private void initTableLayout()
		{
			if (mCollapsedColumns == null)
			{
				mCollapsedColumns = new android.util.SparseBooleanArray();
			}
			if (mStretchableColumns == null)
			{
				mStretchableColumns = new android.util.SparseBooleanArray();
			}
			if (mShrinkableColumns == null)
			{
				mShrinkableColumns = new android.util.SparseBooleanArray();
			}
			mPassThroughListener = new android.widget.TableLayout.PassThroughHierarchyChangeListener
				(this);
			// make sure to call the parent class method to avoid potential
			// infinite loops
			base.setOnHierarchyChangeListener(mPassThroughListener);
			mInitialized = true;
		}