腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
ListView
项目中的水平滚动视图?
android
、
android-layout
我有一个在
中心
使用HorizontalScrollView的
ListView
项目布局。我在我的父LinearLayout上使用了
android
属性"
android
:descendantFocusability="blocksDescendants"“,这样
ListView
项仍然是可
选择
的我遇到的问题是,当单击作为HorizontalScrollView的
ListView
项的一部分时,不会调用
ListView
项单击事件。如何
浏览 1
提问于2012-06-30
得票数 6
1
回答
ListView
未响应单击或KeyPress
android
我的layout.xml文件中有一个简单的
ListView
。<
ListView
android
:id="@+id/action_list"
android
:layout_height="wrap_content" /> 在我的javacode中,我将一个setOnItemClickListener()添加到我的列表
浏览 2
提问于2009-12-03
得票数 1
2
回答
在
中心
-
android
中设置
ListView
文本
android
、
android-layout
我尝试将
ListView
的文本设置在
中心
的布局中。我使用LinearLayout并设置重力=
中心
,但它总是显示在左中<?>
android
:layout_width=""> &
浏览 1
提问于2011-06-09
得票数 2
回答已采纳
1
回答
只有一个XYPlot水平
中心
的仙女图
ListView
of XYPLOT
android
、
listview
、
graph
、
androidplot
我想用
ListView
of XYPlot绘制一个图。我为什么不使用XYPlot呢?这是因为我有几个图,我想给用户在特定时间只
选择
一个图的可能性。也就是说,一旦用户
选择
了一个项,我就绘制出与所选项相一致的图形。此外,还有一个问题,即每个项目的规模是不同的。也就是说,如果item1对Y轴的缩放从0到10,item2可能从-20缩放到20。这是我的
ListView
代码
android
:id="@+id/LinearLayout01"
浏览 0
提问于2017-03-17
得票数 0
3
回答
Android
“扩展ListActivity”错误,无法实例化活动组件信息
android
、
android-activity
、
instantiation
、
listactivity
_1, lista)); 这个是我的XML,活动:xmlns:tools="http://schemas.
android
.com/tools"
android
:layout_width="fill_parent&
浏览 3
提问于2014-01-10
得票数 1
回答已采纳
2
回答
Android
布局列表视图相对布局下的高度调整
android
、
layout
我想添加一个列表视图或表格视图,占据屏幕的2/3,然后在列表视图的正下方的
中心
会有一个巨大的按钮。现在的问题是列表视图占据了整个屏幕的高度。我无法在图形布局上调整高度。我只想拿5件高度尺寸的衣服。下面是屏幕上的按钮
中心
, &l
浏览 0
提问于2012-01-01
得票数 2
回答已采纳
2
回答
如何创建从活动底部绘制的
listView
?
java
、
android
、
android-listview
、
drawerlayout
我正在创建一个应用程序,我想从底部绘制我的
listView
,或者从底部绘制一个类似的对象,并能够从其选项中进行
选择
。我尝试过设置Y位置,在
listView
设置中定义layoutParams,使用布局重力GravityCompact.START|Gravity.BOTTOM,stackFromBottom=为“true”,我甚至尝试预先设置我的
listView
,但因为我使用不同适配器的
listView
和不同数量的项目,所以它大多从视图
中心
的某个地方开始。我希望当我的
listView
浏览 18
提问于2019-02-11
得票数 0
回答已采纳
1
回答
需要在垂直
中心
设置列表视图,以便在
Android
中进行抽屉布局。
android
、
android-listview
、
drawerlayout
但是我无法在抽屉布局的垂直
中心
显示列表视图。以下是我的总体xml布局:
android
:id="@+id/left_drawer"
android
:layout_widthmDrawerLayout = (DrawerLayout) findV
浏览 0
提问于2014-01-13
得票数 5
回答已采纳
2
回答
相对布局
中心
的
android
- list视图
android
我有以下布局(
Android
4.4): xmlns:
android
="http://schemas.
android
.com/apk/res/
android
"
android
:layout_width="match_parent"
浏览 3
提问于2014-06-21
得票数 0
回答已采纳
1
回答
Listview
动态分配宽度
android
、
listview
、
android-listview
我想让我的
ListView
被包装到它的内容在它的宽度,并使它对齐父
中心
。这就是正常的
ListView
给我的 这几乎是我想要实现的,只是我希望
ListView
通过
ListView
中最长的测试来包装。第一张图像的一些代码:
android
:id="@+id/lst_test"
android
:layout_width="0dip"
浏览 0
提问于2013-10-09
得票数 0
回答已采纳
4
回答
Android
ListView
:当没有项目时默认文本
android
、
listview
我有一个
ListView
,它可以将0自定义项包含在其中(比如“我的下载”)。谢谢!
浏览 6
提问于2010-11-03
得票数 31
回答已采纳
6
回答
ListView
项目
选择
android
、
android-layout
、
android-intent
、
android-listview
我有一个列表视图,我希望在我的活动开始时,第一个项目将有背景,而其他项目没有任何background.After,如果用户
选择
任何其他项,那么该特定项的背景现在将是蓝色的,其余的项目将没有任何background.Please我的layout_effect.xml <itemmethod
浏览 6
提问于2013-08-08
得票数 5
3
回答
ListView
-在整个
ListView
高度上拉伸单个项目
android
、
listview
、
android-arrayadapter
如果我在
ListView
上的ArrayAdapter中有一个ArrayAdapter项,我希望将这一项扩展到
ListView
<code>E 29</code><code>E 110</code>高度<code>E 211</code>(因此我在屏幕
中心
有一个项目的文本)。如下所示:用RecyclerView (上图)很容易做到这一点,但在我的例子中,现在我无法在RecyclerView上重建
ListView
屏幕
浏览 3
提问于2017-04-03
得票数 0
回答已采纳
1
回答
将TextView与下面的RelativeLayout顶部与
ListView
对齐
android
、
xml
、
android-layout
、
listview
我的TextView正垂直对齐到布局的
中心
,但我希望它与顶部对齐,因为它必须是
ListView
的头部。我试着把它放在内部的RelativeLayout中,但是没有帮助。我的Layout.xml:<RelativeLayout xmlns:
android
="http://schemas.
android
.com/apk/re/
android
"xmlns:tools="http://s
浏览 1
提问于2016-01-17
得票数 0
回答已采纳
1
回答
ListView
就像一个垂直画廊
android
、
android-listview
、
gallery
据我所知,没有简单的方法可以让
Android
Gallery垂直。但是Gallery有一件事是我需要的--把项目放在视图的
中心
。我如何在
ListView
中做到这一点?经过调整的
listView
必须像老虎机一样工作-选定的项目始终位于视图
中心
。这是一种“离散滚动”。
浏览 0
提问于2012-06-14
得票数 1
1
回答
Android
ListView
项在顶部对齐
java
、
android
、
listview
、
alignment
我有一个机器人
ListView
。<
ListView
android
:layout_height="wrap_content"
android
:id="@+id/myListView" <e
浏览 3
提问于2015-11-27
得票数 3
回答已采纳
5
回答
水平LinearLayout不是居中的,我正在设置:地心引力为“
中心
”
android
我试过
android
:gravity=的“
中心
”(她没有对
中心
)当前xml文件
android
:la
浏览 1
提问于2018-01-29
得票数 1
回答已采纳
1
回答
如何在
android
上对
ListView
的选定项进行onListItemClick着色
java
、
android
、
listview
我正在安卓上实现
ListView
。此方法单击时应对项目进行着色。@Override super.onListItemClick
浏览 1
提问于2015-09-27
得票数 0
回答已采纳
1
回答
ListView
项的边框在单击时会改变颜色(比如临时高亮显示或闪烁)?
android
、
listview
、
android-listview
ListView
中的每一项都由一个CardView组成,其中包含一个TextView。 这不是一个bug,这只是
android
列表视图显示该项目被单击的正常方式(比如在发布触摸之前突出显示它)。
浏览 1
提问于2015-10-07
得票数 0
回答已采纳
1
回答
如何在ProgressBar中放置
ListView
?
android
、
android-listview
、
markup
、
android-progressbar
我有一个
ListView
,它填充了AsyncTask。在运行时,
ListView
变得不可见,ProgressBar显示在水平
中心
,在AsyncTask完成后消失,
ListView
再次显示。现在看起来是这样的:但我需要将ProgressBar显示在
ListView
内部,并且是水平和垂直的居中:下面是我的布局标记: <LinearLayout xmlns:
android
="http://schemas.
浏览 3
提问于2014-10-05
得票数 4
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
即时通信 IM
活动推荐
运营活动
广告
关闭
领券