以下关于ListView的XML属性的描述错误的是()A、ListView与其他的UI控件相同,在XML布局文件中通过标签将其放入界面布局中。B、直接让Activity继承自ListAdapter,可以将ListView填充满整个Activity。C、在XML布局代码中将ListView的位置设为占满整个Activity,可以将ListView填充满整个Activity。D、把ListView放在布局控件中,让其只占界面的某一部分。

以下关于ListView的XML属性的描述错误的是()

  • A、ListView与其他的UI控件相同,在XML布局文件中通过标签将其放入界面布局中。
  • B、直接让Activity继承自ListAdapter,可以将ListView填充满整个Activity。
  • C、在XML布局代码中将ListView的位置设为占满整个Activity,可以将ListView填充满整个Activity。
  • D、把ListView放在布局控件中,让其只占界面的某一部分。

相关考题:

下列选项中,属于为ListView添加适配器的方法的是()。 A、setAdapter()B、setBaseAdapter()C、addAdapter()D、addBaseAdapter()

在Android中,实现选项卡需要步骤() A.在布局文件中添加实现选项卡所需的TabHost、TabWidget和FrameLayout组件B.编写各标签页中要显示内容所对应的XML布局文件C.在Activity中,获取并初始化TabHost组件D.为TabHost对象添加标签页

使用XML布局文件控制UI界面时,在Android应用的_________目录下编写XML布局文件,可以是任何符合Java命名规则的文件名。

一般在Activity的onCreate()方法中添加UI界面的布局文件R、layout、main、xml,用到的方法是()。 A、SetContentView()B、findViewById()C、setOnClickListener()D、setClass()

关于Activity的描述,下面哪个是错误的()。 A.系统完全控制Activity的整个生命周期B.一个Android程序中只能拥有一个Activity类C.Activity类都必须在Androidmaniefest.xml中进行声明D.Activity类必须重载onCreate方法

下列关于XML布局文件在Java代码中被引用的说明中,不正确的是?()A、在Activity中,可以使用findViewById()方法,通过资源id,获得指定视图元素B、在Activity中,可以使用R.drawable-system.***方式引用Android系统所提供的图片资源C、在Activity中,可以使用setContentView()方法,确定加载哪一个布局文件D、可以使用View类的findViewById()方法,获得当前View对象中的某一个视图元素

ListView控件在显示项目列表时总带有一个图标。

要向ListView控件中插入一个项目,需要调用控件的()方法。 A、Items.AddB、Items.InsertC、Items.RemoveD、Items.Clear

下面对于ListView控件说法错误的为()A、LayoutTemplate定义了ListView控件的主要布局,必须包含一个充当数据占位符的控件B、GroupTemplate定义了ListView控件中一组数据的布局方式,必须包含一个充当数据占位符的控件C、使用ListView控件时,至少需要编辑LayoutTemplate、GroupTemplate和ItemTemplate3个模板。D、LayoutTemplate和GroupTemplate模板中的占位符控件必须是一个服务器端控件

自定义ListView数据源Adapter时可以继承的类有哪些()。A、BaseAdapterB、CursorAdapterC、AdapterD、simpleAdapter

ListView是常用的()类型控件。A、按钮B、图片C、列表D、下拉列表

ListView与Cursor提供的数据进行绑定时使用()。A、ArrayAdapterB、SimpleAdapterC、SimpleCursorAdapterD、BaseAdapter

在AndroidManifes.xml中描述一个Activity时,该Activity的label属性是指定什么()A、指定Activity的图标B、指定Activity的显示图标C、指定Activity和类相关联的类名D、指定该Activity的唯一标识

给ListView设置适配器的方法是()。

公司要求开发一个继承System.Windows.Forms.ListView类的组件,要求达到以下的特殊功能:点击ListView各列列头时,能按照点击列的每行值进行重排视图中的所有行(排序的方式如DataGrid相似)。根据您的知识,请简要谈一下您的思路

Which property of the ListView class is used to get/set the name of the data field whose value exclusively identifes every data row of a ListView when the ClientIDMode property is set to Predictable?()A、LoadViewStateByIDB、UniqueIDC、ClientIDModeD、ClientIDRowSuffix

You are implementing an ASP.NET page that will retrieve large sets of data from a data source. You add a ListView control and a DataPager control to the page. You need to ensure that the data can be viewed one page at a time. What should you do?()A、Set the DataPager control’s PageSize property to the number of rows to view at one time.B、Set the DataPager control’s PagedControlID property to the ID of the ListView control.C、In the code-behind file, set the DataPager control’s Parent property to the ListView control.D、In the code-behind file, set the ListView control’s Parent property to the DataPager control.

单选题下面对于ListView控件说法错误的为()ALayoutTemplate定义了ListView控件的主要布局,必须包含一个充当数据占位符的控件BGroupTemplate定义了ListView控件中一组数据的布局方式,必须包含一个充当数据占位符的控件C使用ListView控件时,至少需要编辑LayoutTemplate、GroupTemplate和ItemTemplate3个模板。DLayoutTemplate和GroupTemplate模板中的占位符控件必须是一个服务器端控件

单选题以下关于ListView的XML属性的描述错误的是()AListView与其他的UI控件相同,在XML布局文件中通过标签将其放入界面布局中。B直接让Activity继承自ListAdapter,可以将ListView填充满整个Activity。C在XML布局代码中将ListView的位置设为占满整个Activity,可以将ListView填充满整个Activity。D把ListView放在布局控件中,让其只占界面的某一部分。

单选题ListView是常用的()类型控件。A按钮B图片C列表D下拉列表

判断题ListView控件在显示项目列表时总带有一个图标。A对B错

单选题要使ListView控件以详细信息形式显示项目,必须将属性View设置为()。ASmallIconBLargeIconCListDDetails

单选题在AndroidManifes.xml中描述一个Activity时,该Activity的label属性是指定什么()A指定Activity的图标B指定Activity的显示图标C指定Activity和类相关联的类名D指定该Activity的唯一标识

单选题You are implementing an ASP.NET page that will retrieve large sets of data from a data source. You add a ListView control and a DataPager control to the page. You need to ensure that the data can be viewed one page at a time. What should you do?()ASet the DataPager control’s PageSize property to the number of rows to view at one time.BSet the DataPager control’s PagedControlID property to the ID of the ListView control.CIn the code-behind file, set the DataPager control’s Parent property to the ListView control.DIn the code-behind file, set the ListView control’s Parent property to the DataPager control.

单选题对于XML布局文件中的视图控件layout_width属性的属性值不可以是?()Amatch_parentBfill_parentCwrap_parentDmatch_cotent

填空题给ListView设置适配器的方法是()。

单选题要向ListView控件中插入一个项目,需要调用控件的()方法。AItems.AddBItems.InsertCItems.RemoveDItems.Clear