Exemple #1
0
			protected internal override void setBaseAttributes(android.content.res.TypedArray
				 a, int widthAttr, int heightAttr)
			{
				// We don't want to force users to specify a layout_width
				if (a.hasValue(widthAttr))
				{
					width = a.getLayoutDimension(widthAttr, "layout_width");
				}
				else
				{
					width = MATCH_PARENT;
				}
				// We don't want to force users to specify a layout_height
				if (a.hasValue(heightAttr))
				{
					height = a.getLayoutDimension(heightAttr, "layout_height");
				}
				else
				{
					height = WRAP_CONTENT;
				}
			}
Exemple #2
0
			protected internal override void setBaseAttributes(android.content.res.TypedArray
				 a, int widthAttr, int heightAttr)
			{
				this.width = MATCH_PARENT;
				if (a.hasValue(heightAttr))
				{
					this.height = a.getLayoutDimension(heightAttr, "layout_height");
				}
				else
				{
					this.height = WRAP_CONTENT;
				}
			}
Exemple #3
0
			protected internal override void setBaseAttributes(android.content.res.TypedArray
				 a, int widthAttr, int heightAttr)
			{
				if (a.hasValue(widthAttr))
				{
					width = a.getLayoutDimension(widthAttr, "layout_width");
				}
				else
				{
					width = WRAP_CONTENT;
				}
				if (a.hasValue(heightAttr))
				{
					height = a.getLayoutDimension(heightAttr, "layout_height");
				}
				else
				{
					height = WRAP_CONTENT;
				}
			}