登录
首页 » 其他 » Android ArrayAdapter创建ActivityList内容列表

Android ArrayAdapter创建ActivityList内容列表

于 2022-03-06 发布 文件大小:15.04 kB
0 194
下载积分: 2 下载次数: 1

代码说明:

本源码主要演示Android ActivityList内容列表的如何创建,采用ArrayAdapter实现,演示了姓名列表、带单选框的列表、没有数据的列表和对列表进行操作这几项功能,要注意,layout的xml文件名需要全部小写。   ActivityList1:   1.初步介绍ListView这个组件。   2.初步介绍ArrayAdapter。    # simple_list_item_single_choice    # simple_list_item_1    # simple_list_item_multiple_choice   3.上边的相关介绍。   ActivityList2:(有错误,没有调试成功,回头再看)    1.介绍cusor。    2.介绍CursorAdapter。   ActivityList3:    1.SimpleAdapter    2.simple_list_item_1和simple_list_item_2的介绍。    3.利用自己的layout来进行显示。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Java绘图:绘制虚线与实线
    Java绘图:绘制虚线与实线   public LineDemo(){    super("实线与虚线"); //调用父类构造函数    setSize(300,200); //设置窗口尺寸    setVisible(true); //设置窗口可视    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //关闭窗口时退出程序   }   public void paint(Graphics g){ //绘制组件方法    Graphics2D g2=(Graphics2D)g; //得到2D图形    Dimension dim = this.getSize(); //得到组件尺寸    g2.setColor(Color.white); //设置绘制颜色为白色    g2.fillRect(0, 0, dim.width, dim.height); //填充整个组件    g2.setColor(Color.black); //设置绘制颜色    g2.drawLine(40,160,280,160); //绘制实线    g2.drawLine(40,160,40,40);    g2.drawString("0",30,165); //绘制字符串    g2.drawString("100",16,50);    g2.drawString("200",270,175);    float[] dash={5,5}; //短划线图案    BasicStroke bs = new BasicStroke(1,BasicStroke.CAP_BUTT,BasicStroke.JOIN_MITER, 10.0f,dash,0.0f); //实例化新画刷    g2.setStroke(bs); //设置新的画刷    g2.drawLine(40,160,100,120); //用新的画刷绘制虚线
    2022-01-28 07:52:17下载
    积分:1
  • mpeg 2 system 1,2,3 all user need to check it out
    mpeg 2 system 1,2,3 all user need to check it out-mpeg 2 system 1,2, 3 all user need to check it out
    2023-04-24 19:05:03下载
    积分:1
  • Refinement on SQL development, deal with the development of the internal process...
    关于SQL开发的细化,处理开发内部处理系统过程中的BUG。-Refinement on SQL development, deal with the development of the internal processing system in the process of BUG.
    2022-02-03 01:49:56下载
    积分:1
  • 字母排序,在对一个C程序进行编译的过程中,可发现注释中的拼写错误...
    字母排序,在对一个C程序进行编译的过程中,可发现注释中的拼写错误-Alphabetical order, in the process of a C compiler, the Notes can be found in the spelling errors
    2022-02-26 13:24:07下载
    积分:1
  • TM8000硬盘录像机客户端编程文档和Demo源代码,是从事相关开发不可多得的资料。...
    TM8000硬盘录像机客户端编程文档和Demo源代码,是从事相关开发不可多得的资料。-TM8000 DVR Client Demo programming documents and source code, is engaged in the development of rare-related information.
    2022-07-15 04:46:59下载
    积分:1
  • 自己看看,JSP写的简单的聊天程序
    自己看看,JSP写的简单的聊天程序-Could see for himself, JSP write a simple chat program
    2022-03-25 16:10:42下载
    积分:1
  • 最大互信息量分割算法
    最大互信息量分割算法 -Segmentation algorithm based on maximum mutual information
    2022-04-07 22:33:24下载
    积分:1
  • based on the DS1420 electronic music procedures. ISD1420 from a single recording...
    基于DS1420的电子音乐程序.ISD1420由一个单录音信号REC实现录音操作,两个放音信号其中的一个实现放音操作,PLAYE(触发放音),PLAYL (电平放音)ISD1420 可以配置成单一信息的应用,如果使用地址线也可以用于复杂信息的处理。-based on the DS1420 electronic music procedures. ISD1420 from a single recording signal achievement REC recording operation, two audio signal up to the realization of a sound operation, PLAYE (trigger audio), PLAYL (Music-- Horizontal) ISD1420 can configure the information into a single application, If the use of address lines can be used for complex information processing.
    2022-02-26 17:48:43下载
    积分:1
  • 算数表达式解析器,用于验证过程中的表达分析…
    算数表达式解析器,专门用于分析算数表达式的程序-count expression parser devoted to the analysis of the expression validated procedures
    2022-02-05 11:12:13下载
    积分:1
  • 这是一个光盘镜像,是关于嵌入式操作系统的经典书籍<<嵌入式实时操作系统uc os2>>的附带光盘,是北航出版社出版...
    这是一个光盘镜像,是关于嵌入式操作系统的经典书籍的附带光盘,是北航出版社出版-This is a disk image is embedded operating system on the classic books
    2022-02-02 15:38:28下载
    积分:1
  • 696516资源总数
  • 106436会员总数
  • 7今日下载