登录
首页 » Android » Android LinearLayout结合TextView选择列表项数据

Android LinearLayout结合TextView选择列表项数据

于 2022-01-26 发布 文件大小:97.32 kB
0 158
下载积分: 2 下载次数: 1

代码说明:

Android LinearLayout结合TextView选择列表项数据,在虚拟机上是单击鼠标选中一行数据,在手机上则是手触摸一下即选择对应数据行,循环生成每行的包含对应各个列数据的Map;col1、col2、col3为列名,可参考相关代码:   重写选项被单击事件的处理方法   TextView tv=(TextView)findViewById(R.id.TextView01);//获取主界面TextView   LinearLayout ll=(LinearLayout)arg1;//获取当前选中选项对应的LinearLayout   TextView tvn=(TextView)ll.getChildAt(1);//获取其中的TextView   TextView tvnL=(TextView)ll.getChildAt(2);//获取其中的TextView   StringBuilder sb=new StringBuilder();   sb.append(tvn.getText());//获取姓名信息   sb.append(" ");   sb.append(tvnL.getText());//获取描述信息   tv.setText(sb.toString());//信息设置进主界面TextView

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

发表评论

0 个回复

  • 一款简单的连连看小游戏android
    这是一款简单的android小游戏,界面比较清晰,用户体验感很好,适合android的初学者研究参考。这也是我找的一款代码,交了结课作业的,能流畅运行,代码也比较简单,非常不错的一个代码。
    2022-09-24 11:35:04下载
    积分:1
  • android_key
    android新增按键值流程,从底层到中间层再到上层app,对linux和android framework有个一定的认识(android key value added processes, from the bottom to the middle layer and then to the upper app, android framework for linux and have a certain understanding of)
    2013-10-09 11:34:19下载
    积分:1
  • android 二维码签到
    android 二维码签到,通过扫描二维码实现
    2022-01-25 23:12:41下载
    积分:1
  • android 调用摄像头录制视频并播放 实例源码下载
    android 调用摄像头录制视频并播放 实例源码下载
    2015-01-13下载
    积分:1
  • Android_feigequanshu
    android 飞鸽传书源码,比较好的资料
    2013-03-15 09:47:00下载
    积分:1
  • Wordroid-demo
    安卓单词记忆小程序,用于androi的各种便携式英语记忆,绝对良好(android word memory)
    2013-04-01 21:43:08下载
    积分:1
  • BTBee_Examples_By_EF
    我们都知道Android是现在很流行,尤其是ADK(Android开放配件开发工具包),它允许外部0pen源采用Android系统的硬件连接,通过USB与Android平台的设备在一个特殊的“附件”模式互动。 我们就可以继续工作数周,并尝试组装一些巴塔原型和库之间的通信通过蓝牙和Freaduino ADK的Android和Arduino。 随着谷歌提供的源文件,我们可以提供从现在起板。我们产生一个批处理,你可以购买他们here.We将尽快巴塔版本。 为了使Android和Arduino的易之间的沟通,我们想告诉你一个新的机器人与Arduino和其他类似的议会的互动方式。蓝牙为例。 步骤一:一个Android应用程序,这可能与其他设备通过蓝牙通信。 第二步:Android应用程序由蓝牙蜜蜂连接到Arduino的。 步骤之一(第一部分),我们刚刚作出了一个小应用程序的Android,实现简单的蓝牙连接与Android。(We all know Android is very popular now, especially ADK (Android Open Accessory Development Kit), which allows external 0pen source hardware to connect with Android system by USB and interact with an Android-powered device in a special “accessory” mode. We keep working on it for weeks, and try to assemble some bata prototype and make a library for the communication between Android and Arduino by bluetooth and Freaduino for ADK. With the Google providing source files, we are able to provide this board from now on. We produce a batch, you can purchase them here.We will provide the Bata version as soon as possible. To make the communication between Android and Arduino easy, we would like show you a new way that android interact with Arduino and other similar boards. Bluetooth for example. Step one: Make a APP to Android which could communicate with other devices by bluetooth. Step two: Android APP connect to Arduino by Bluetooth Bee. For step one(Part1), we have just made a little A)
    2011-09-05 11:40:32下载
    积分:1
  • java
    手机源码 android手机开发的源码,例子比较的多,有需要的可以下载(Source android mobile phone)
    2010-12-29 10:57:48下载
    积分:1
  • GridScenario
    Utility base class creating various GridView scenarios for Andriod.
    2013-10-21 16:29:55下载
    积分:1
  • 购物商城手机客户端+web服务器端
    购物商城APP项目采用JSP+Java编写,分为手机客户端和web服务器端两个部分。手机端可以浏览商品,购买商品;web服务器端则是后台管理,可以对商品种类进行操作,用户权限的分配等等。。。
    2022-03-04 14:56:13下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载