在一个相对布局中怎样使一个控件居中()
A、android:gravity="center"
B、android:layout_gravity="center"
C、android:layout_centerInParent="true"
D、android:scaleType="cente"
A、android:gravity="center"
B、android:layout_gravity="center"
C、android:layout_centerInParent="true"
D、android:scaleType="cente"
A、LayoutTemplate定义了ListView控件的主要布局,必须包含一个充当数据占位符的控件 B、GroupTemplate定义了ListView控件中一组数据的布局方式,必须包含一个充当数据占位符的控件 C、使用ListView控件时,至少需要编辑LayoutTemplate、GroupTemplate和ItemTemplate3个模板。 D、LayoutTemplate和GroupTemplate模板中的占位符控件必须是一个服务器端控件
A、A. 为类型为Itemplate的属性声明一个属性TemplateContainerAttribute。并且传递模板的命名 容器类型作为参数。 B、B. 为用户控件的类定义声明属性TemplateContainerAttribute 。 C、C. 在用户控件的code-behind 类中实现一个类型为INamingContainer 的属性。 D、D. 在用户控件的code-behind 类中实现一个类型为ITemplate的属性。 E、E. 定义一个从ITemplate 继承的新类。实现ITemplate 接口的InstantiateIn 方法。
A、为你的解决方案增加一个Web控件库项目;定义一个从CompositeControl继承的类。 B、为你的解决方案增加一个Windows控件库项目;定义一个从UserControl继承的类。 C、为你的解决方案增加一个Web用户控件项目;定义一个从UserControl继承的类。 D、为你的解决方案增加一个移动Web用户控件项目;定义一个从MobileUserControl继承的类。
A、A. 在System.Web.UI.MobileControls.SelectionList 控件的实例中增加Command控件。. B、B. 在System.Web.UI.MobileControls.ObjectList 控件的实例中增加Command控件。 C、C. 在System.Web.UI.MobileControls.Form 控件的实例中增加Command控件。 D、D. 在System.Web.UI.MobileControls.Panel 控件的实例中增加Command控件。