腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
ListView
中
的
Android
-
EditTexts
绑定
到
自定义
ArrayAdapter
-
跟踪
更改
、
、
我有一个
Android
活动,在其中我有一个
绑定
到
自定义
ArrayAdapter
的
ListView
。
ListView
的
每一行都有两个EditText (数字)字段。
ArrayAdapter
最初由SQLite DB填充。但是,用户可以在
ListView
的
末尾添加一行,或者(通过长按一行)删除
ListView
中
的
任何行。我通过将AfterTextCha
浏览 3
提问于2011-10-12
得票数 8
回答已采纳
2
回答
安卓:在MainActivity中使用在AsyncTask
中
创建
的
arrayadapter
<
Custom
object>
、
、
、
、
在onPostExecute()方法
中
,ArrayList被用在一个新创建
的
ArrayAdapter
<
Custom
object>
中
,它也被设置为一个带有lv.setAdapter(adapter).
的
但是因为我有另一个类也需要执行该AsyncTask,所以我将内部类AsyncTask
更改
为一个独立
的
.java文件(CustomAsyncTask.java)。,也就是说,因为
ArrayAdapter
属于AsyncTask并
浏览 3
提问于2012-07-11
得票数 1
1
回答
错误:找不到符号变量
listView
_bookList
、
、
我
的
片段-> FragmnetOneimport
android
.os.Bundle;import
android
.widget.
ListView
;import
android
.widget.
ArrayA
浏览 5
提问于2015-07-06
得票数 0
2
回答
将ArrayList适配为
ListView
、
、
我有一个XML文件,我已经成功地将数据解析
到
textView
中
,现在我想将该数据
绑定
到
ArrayList或列表
中
,并在
ListView
中
显示它。al.add(parser.getAttributeValue(null
浏览 1
提问于2012-09-05
得票数 0
回答已采纳
1
回答
地图上
的
列表不会出现在我
的
ListView
中
、
、
、
我从从火药库数据库检索
到
的
地图中列出了一个值。问题是它不会出现在我
的
listView
上。我从另一张地图中创建了另一个列表,它出现在我
的
listView
中
。为什么从消防局文档
中
检索
到
的
列表不能工作,而其他列表工作正常呢?public class RecipeActivity extends Activity { private
浏览 0
提问于2018-07-05
得票数 0
回答已采纳
4
回答
当打开包含
ListView
的
类时,应用程序崩溃
、
、
、
= (
ListView
) findViewById(R.id.
listView
); arr = new ArrayList<<String>(this,
android
.R.layout.simple_list_item_1,arr)); adapter = new
ArrayAdapter
<String>(this,
android
.R.layout.simple_l
浏览 0
提问于2012-06-02
得票数 0
回答已采纳
2
回答
从simpleAdapter
到
ArrayAdapter
的
转换
、
、
、
到目前为止,我一直使用SimpleAdapter来填充列表,但我决定使用
ArrayAdapter
。问题是,我不知道如何以同样
的
方式填充
ArrayAdapter
!下面是我使用SimpleAdapter
的
方法 adapter=new SimpleAdapter(this, listItems, R.layout.
custom
_row_view, new String[]{"name", "current", "reset"}, new int[]
浏览 1
提问于2013-03-09
得票数 0
回答已采纳
2
回答
一个活动
中
的
appcompat和片段
、
我正在向我
的
menu.now添加片段,其中一个菜单片段是一个列表视图,我需要同时使用appcompatactivity和fragment类,这是不可能同时扩展两者
的
错误在屏幕截图中 public classsavedInstanceState) { final
ListView
list = (
ListView
) findViewById(R.id.
listv
浏览 30
提问于2019-09-28
得票数 0
回答已采纳
2
回答
无法
更改
listactivity
中
的
listview
字体
、
、
我是
android
编程
的
新手,我
的
任务是将我共享偏好
中
的
项目加载到列表视图中,我只想改变列表视图
的
设计,比如改变它
的
字体颜色、字体大小等。我试过这个解决方案,但不起作用,请告诉我哪里做错了。谢谢..下面是我在listactivity中加载
listview
的
代码 /
浏览 0
提问于2014-10-17
得票数 0
3
回答
如何将数组添加到
listview
、
、
number < info.size()){} 这就是我目前所拥有的,listPackages()是一个从设备获取应用程序名称
的
方法目前,我正在尝试逐个从数组
中
获取信息,并将其添加到列表视图中。这是我应该做
的
吗?我应该直接将数组添加到
listview
中
吗?你如何做到这一点呢?
浏览 6
提问于2011-03-29
得票数 3
2
回答
要在
android
中
创建视图项列表。
、
box_two_text, box_three_text, box_four_text, box_five_text, constraint_layout) 其中box_xxx_text参数是不同项
的
视图
浏览 3
提问于2022-02-16
得票数 0
5
回答
为什么在没有错误
的
情况下,
ListView
中
没有显示任何内容?
、
、
、
我试着将列表视图放在线性布局
中
,但没有帮助。C谁能帮我处理列表视图。 这是我
的
Xml --> <?xml version="1.0" encoding="utf-8"?;import
android
.view.ViewGroup;import
android
.widget.
ArrayAdapter
<
浏览 71
提问于2017-05-26
得票数 0
回答已采纳
1
回答
如何在
ListView
中
更改
Xamarin.
Android
项
的
文本颜色?
、
、
我有一个简单
的
ListView
,如下所示
android
/asimplelistView1" 我使用以下方法将这个
ListView
按数组
ArrayAdapter
绑定
:
浏览 1
提问于2018-07-01
得票数 0
1
回答
从微调器向
ListView
添加项目不起作用
、
、
、
我
的
应用程序中有两个ArrayLists;一个包含所有电台
的
列表(AllStations),另一个包含用户选择
的
电台列表(MyStations)。用户将从包含AllStations数组列表
中
的
所有项
的
微调器中选择工作站,并将它们添加到myStations数组列表
中
。有一个列表视图,其中显示来自myStations arrayList
的
数据。public class MyStations extends Activity{
ListVi
浏览 1
提问于2013-03-24
得票数 0
回答已采纳
3
回答
设置
ListView
项目的背景?
、
、
、
因此,我有这个
ListView
,我希望它
的
每个items都有一个背景(所有这些items
的
背景相同)。到目前为止,我一直试图使用以下代码:
ArrayAdapter
<CharSequence> lv =
ArrayAdapter
.createFromResource(this, R.array.countries_ar
浏览 1
提问于2015-05-18
得票数 0
回答已采纳
4
回答
Android
:
更改
列表视图中项目的背景颜色
、
、
我想建立一个清单
的
笔记与截止日期。如果到达到期日,则背景色应
更改
。
ListView
lv = (
ListView
) findViewById(
android
.R.id.list); lv.setAdapter(new <em
浏览 11
提问于2014-10-15
得票数 0
回答已采纳
6
回答
android
更改
列表视图字体和颜色
、
、
、
我已经找到了很多不同
的
方法来完成这个任务,但是我不确定什么是最适合我
的
场景。这是我用于
listview
的
Java代码:lv = (
ListView
) findViewById(R.id.favList);<
ListView
"@
android
:color/transparent"
android
:cacheColo
浏览 12
提问于2013-09-19
得票数 5
回答已采纳
1
回答
Android
列表视图故障
、
、
我在试图运行一个实现
ListView
的
Android
活动时遇到了问题,它用20个元素填充并显示出来:活动在启动时崩溃。(
ArrayAdapter
.java:386)at
android
.widget.AbsListView.obtainView; import
android
.widget.
ArrayA
浏览 2
提问于2013-12-12
得票数 1
回答已采纳
1
回答
在安卓系统
中
添加
ListView
到
标签页
、
一切都很好这是我
的
项目+MainActivity.java
ListView
listView
= (
ListView
)findViewById(R.id.
浏览 1
提问于2015-04-10
得票数 1
1
回答
为什么
ListView
与自定义适配器什么都不显示?
、
、
我刚刚得到了空白屏幕,没有数据
绑定
到
列表视图。我
的
密码怎么了?adapter = new
ArrayAdapter
<ListItem>(this,R.layout.
custom
_row,items);
listView
.set
浏览 3
提问于2016-01-19
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
ListView详细介绍与使用
走你!Github 开源整合
Android Spinner下拉框的基本使用
性能优化之卡顿延迟
【译】Android测试:Espresso
热门
标签
更多标签
云服务器
ICP备案
腾讯会议
对象存储
云直播
活动推荐
运营活动
广告
关闭
领券