以下关于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放在布局控件中,让其只占界面的某一部分。

相似考题
参考答案和解析
正确答案:B
更多“以下关于ListView的XML属性的描述错误的是()A、ListView与其他的UI控件相同,在XML布局文件中通过标签将其放入界面布局中。B、直接让Activity继承自ListAdapter,可以将ListView填充满整个Activity。C、在XML布局代码中将ListView的位置设为占满整个Activity,可以将ListView填充满整个Activity。D、把ListView放在布局控件中,让其只占界面的某一部分。”相关问题
  • 第1题:

    关于Activity的描述,下面哪个是错误的()。

    A.系统完全控制Activity的整个生命周期

    B.一个Android程序中只能拥有一个Activity类

    C.Activity类都必须在Androidmaniefest.xml中进行声明

    D.Activity类必须重载onCreate方法


    正确答案:BD

  • 第2题:

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


    正确答案:错误

  • 第3题:

    下面对于ListView控件说法错误的为()

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

    正确答案:C

  • 第4题:

    ListView是常用的()类型控件。

    • A、按钮
    • B、图片
    • C、列表
    • D、下拉列表

    正确答案:C

  • 第5题:

    在AndroidManifes.xml中描述一个Activity时,该Activity的label属性是指定什么()

    • A、指定Activity的图标
    • B、指定Activity的显示图标
    • C、指定Activity和类相关联的类名
    • D、指定该Activity的唯一标识

    正确答案:B

  • 第6题:

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


    正确答案: 根据点击的列头,包该列的ID取出,按照该ID排序后,在给绑定到ListView中。

  • 第7题:

    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.

    正确答案:B

  • 第8题:

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

    ListView与其他的UI控件相同,在XML布局文件中通过标签将其放入界面布局中。

    B

    直接让Activity继承自ListAdapter,可以将ListView填充满整个Activity。

    C

    在XML布局代码中将ListView的位置设为占满整个Activity,可以将ListView填充满整个Activity。

    D

    把ListView放在布局控件中,让其只占界面的某一部分。


    正确答案: A
    解析: 暂无解析

  • 第9题:

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

    B


    正确答案:
    解析: 暂无解析

  • 第10题:

    单选题
    在AndroidManifes.xml中描述一个Activity时,该Activity的label属性是指定什么()
    A

    指定Activity的图标

    B

    指定Activity的显示图标

    C

    指定Activity和类相关联的类名

    D

    指定该Activity的唯一标识


    正确答案: A
    解析: 暂无解析

  • 第11题:

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

    match_parent

    B

    fill_parent

    C

    wrap_parent

    D

    match_cotent


    正确答案: A
    解析: 暂无解析

  • 第12题:

    单选题
    要向ListView控件中插入一个项目,需要调用控件的()方法。
    A

    Items.Add

    B

    Items.Insert

    C

    Items.Remove

    D

    Items.Clear


    正确答案: A
    解析: 暂无解析

  • 第13题:

    下列关于XML布局文件在Java代码中被引用的说明中,不正确的是?()

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

    正确答案:B

  • 第14题:

    要向ListView控件中插入一个项目,需要调用控件的()方法。 

    • A、Items.Add
    • B、Items.Insert
    • C、Items.Remove
    • D、Items.Clear

    正确答案:B

  • 第15题:

    自定义ListView数据源Adapter时可以继承的类有哪些()。

    • A、BaseAdapter
    • B、CursorAdapter
    • C、Adapter
    • D、simpleAdapter

    正确答案:A,B,D

  • 第16题:

    ListView与Cursor提供的数据进行绑定时使用()。

    • A、ArrayAdapter
    • B、SimpleAdapter
    • C、SimpleCursorAdapter
    • D、BaseAdapter

    正确答案:C

  • 第17题:

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


    正确答案:setAdapter

  • 第18题:

    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、LoadViewStateByID
    • B、UniqueID
    • C、ClientIDMode
    • D、ClientIDRowSuffix

    正确答案:D

  • 第19题:

    单选题
    下面对于ListView控件说法错误的为()
    A

    LayoutTemplate定义了ListView控件的主要布局,必须包含一个充当数据占位符的控件

    B

    GroupTemplate定义了ListView控件中一组数据的布局方式,必须包含一个充当数据占位符的控件

    C

    使用ListView控件时,至少需要编辑LayoutTemplate、GroupTemplate和ItemTemplate3个模板。

    D

    LayoutTemplate和GroupTemplate模板中的占位符控件必须是一个服务器端控件


    正确答案: A
    解析: 暂无解析

  • 第20题:

    单选题
    ListView是常用的()类型控件。
    A

    按钮

    B

    图片

    C

    列表

    D

    下拉列表


    正确答案: A
    解析: 暂无解析

  • 第21题:

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

    SmallIcon

    B

    LargeIcon

    C

    List

    D

    Details


    正确答案: B
    解析: 暂无解析

  • 第22题:

    单选题
    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.


    正确答案: D
    解析: 暂无解析

  • 第23题:

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

    正确答案: setAdapter
    解析: 暂无解析