腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9354)
视频
沙龙
2
回答
折叠
工具栏
布局不能在片段中工作-
Android
java
、
android
、
fragment
当我试图在片段中嵌入
折叠
单条时,它不是
折叠
,但是当我在一个简单的活动中尝试相同的代码时,它工作得很好,并且我希望在片段(ProfileFragment)中使用相同的设计,没有错误发生--它只是简单地显示,但没有
折叠
,我想让它正常工作--请帮助我,看看我想要执行的代码。这是我的XML <
android
.support.constraint.ConstraintLayout xmlns:
android
="http://schemas.
android
.com
浏览 0
提问于2018-03-09
得票数 1
回答已采纳
1
回答
如何使
折叠
工具栏
不完全
折叠
?
android
、
android-collapsingtoolbarlayout
我有
折叠
工具栏
,它正在正确地
折叠
:<
android
.support.design.widget.CoordinatorLayout xmlns:
android
="http://schemas.
android
.com/apk/res/> 我试图使
折叠
工具栏</em
浏览 1
提问于2018-06-19
得票数 2
2
回答
为什么CollapsingToolbarLayout在展开的内容下放置一个空空间
android
、
material-design
、
android-toolbar
、
android-collapsingtoolbarlayout
我的xml看起来像这样
android
:fitsSystemWindows="true" <
android
.support.design.widget.CollapsingToolbarLayout
android<
浏览 1
提问于2018-11-20
得票数 3
2
回答
使可
折叠
工具栏
自动
折叠
/展开
android
、
android-collapsingtoolbarlayout
当垂直偏移超过特定阈值时,如何使
android
中的可
折叠
工具栏
自动
折叠
/扩展?如图中所示,如果垂直偏移量超过getScrollRange()的半点,则可
折叠
工具栏
将自动展开,并且低于该阈值应该会
折叠
。
浏览 1
提问于2016-08-19
得票数 3
回答已采纳
1
回答
Android
浮动动作按钮自定义行为
android
我正在开发一个
Android
应用程序,其中我使用了浮动操作按钮。当前浮动操作按钮与
折叠
工具栏
布局对齐。我想以这样的方式定义滚动感知行为:当
折叠
的
工具栏
完全
折叠
时,浮动的操作按钮应该向下滚动。当
折叠
的
工具栏
展开时,FAB应该会回到它原来的位置。以下是我希望实现的内容:
浏览 0
提问于2015-12-10
得票数 3
1
回答
片段中没有滚动内容的
折叠
工具栏
问题
android
、
android-layout
、
android-fragments
结构是这样的:compile 'com.
android
.support:design:23.1.0' 我不需要在所有片段中都使用
折叠
工具栏
问题是当我启动我的应用
浏览 0
提问于2015-11-22
得票数 0
2
回答
根据
工具栏
的状态更改
折叠
工具栏
的嵌入
android
、
kotlin
、
android-toolbar
、
android-collapsingtoolbarlayout
、
insets
我有
折叠
工具栏
和一些布局,我想
折叠
。为了防止视图在状态栏下运行,我使用系统内嵌来设置
折叠
工具栏
的边距。我使用inset为
折叠
工具栏
添加边距: collapsing_toolbar.setMarginTop(insets.systemWindowInsetTop)} 当
折叠
浏览 3
提问于2021-06-18
得票数 0
回答已采纳
2
回答
仅在
折叠
工具栏
中的
工具栏
上捕捉滚动标志
android
、
android-collapsingtoolbarlayout
我有一个可
折叠
的
工具栏
和一个固定的
工具栏
,我希望
折叠
的
工具栏
可以自由滚动,但固定的
工具栏
可以打开或关闭,我的问题是,这可以通过滚动标志来实现,或者我需要创建自定义布局行为,或者基于
工具栏
偏移来禁用和启用标志,所以为了说明我想要的是一些图像, 这将是自由滚动自由空间的一个示例(无对齐)这将是完全滚动的
折叠
工具栏
和固定的
工具栏
但我永远不会允许这样做这是固定
浏览 28
提问于2021-03-02
得票数 1
回答已采纳
1
回答
崩溃
工具栏
不能在
Android
5.0下工作
android
、
xml
、
android-collapsingtoolbarlayout
我对
折叠
工具栏
有问题。 xmlns:app="http://schemas.
android</em
浏览 6
提问于2017-06-13
得票数 1
回答已采纳
1
回答
如何同时滚动
折叠
工具栏
和RecyclerView?
android
、
toolbar
、
android-coordinatorlayout
、
android-design-library
正如您在截图中看到的,我有一个透明的
折叠
工具栏
,它可以滚动
折叠
。如何将此更改为同时
折叠
工具栏
和滚动RecyclerView?> <
android
.support.design.widget.CoordinatorLayout xmlns:
android
="http://schemas.
android
.com/apk
浏览 2
提问于2016-09-02
得票数 1
1
回答
折叠
工具栏
不是用抽屉布局
折叠
的
java
、
android
、
xml
、
android-collapsingtoolbarlayout
、
android-appbarlayout
我的
折叠
工具栏
是作为一个常规
工具栏
的反应,没有
折叠
行为。 <?xml version="1.0" encoding="utf-8"?> <
android
.support.v4.widget.DrawerLayout xmlns:
android
="http://schemas.
android
.com/apk/res/<em
浏览 1
提问于2019-07-12
得票数 0
1
回答
如何在片段和活动中创建
折叠
工具栏
android
、
android-collapsingtoolbarlayout
我试图在我的项目中为片段和活动创建
折叠
工具栏
,但
折叠
工具栏
不
工作,并帮助我找到解决方案,因为我是新手well.Please安卓。提前谢谢你。
浏览 17
提问于2017-02-06
得票数 2
回答已采纳
2
回答
如何避免隐藏浮动操作按钮
java
、
android
、
xml
我有一个工厂锚定到
折叠
工具栏
,当
工具栏
折叠
时,工厂自动隐藏,我希望它停止隐藏 <
android
.support.design.widget.FloatingActionButton
android
:layout_width="wrap_content"
android
:layout_height="wrap_conten
浏览 25
提问于2019-04-15
得票数 0
2
回答
工具栏
可见于未
折叠
的CollapsingToolbar顶部
android
、
xml
、
toolbar
、
android-collapsingtoolbarlayout
我已经添加了一个CollapsingToolbarLayout,它会流行背景图像,并在
工具栏
中进行变形。我已经实现了代码,它确实变成了
工具栏
,但问题是,即使在ImageView的collapsingToolbar布局之上,即使在未
折叠
模式下,
工具栏
也始终是可见的。我不明白为什么会这样。以下是守则:<
android
.support.design.widget.CoordinatorLayout xmlns:
android
="http:/
浏览 3
提问于2015-11-05
得票数 0
1
回答
折叠
工具栏
并在滚动时隐藏TabLayout
android
、
android-support-design
我想使用CollapsingToolbarLayout
折叠
工具栏
,然后将TabLayout移动到
工具栏
下。以下是我的代码xmlns:
android
="http://schemas.
android
.com/apk/res/
android
" xmlns:app="http:/
浏览 0
提问于2015-10-28
得票数 0
1
回答
Android
折叠
工具栏
,仅当用户触摸回收器视图时才
折叠
android
、
android-recyclerview
、
android-collapsingtoolbarlayout
/] [/CollapsingToolbarLayout] [RecyclerView/]
折叠
工具栏
工作正常我的循环视图是这样的
android
:id="@+id/profile_grid"
android
:layou
浏览 1
提问于2016-11-23
得票数 0
3
回答
ViewPager中的RecyclerView NestedScrollView中的CoordinatorLayout不可滚动
android
、
android-fragments
、
scroll
、
android-recyclerview
、
android-collapsingtoolbarlayout
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"/> <NestedScrollView
android
:fillViewport="true" app:layout_behavior="@string
android
:l
浏览 9
提问于2017-05-19
得票数 3
1
回答
RecyclerView在
折叠
工具栏
中
不
滚动
android
、
scroll
、
android-recyclerview
、
coordinator-layout
我在一个
折叠
的
工具栏
布局中有一个非常简单的RecyclerView。我已经尝试了所有可能的标志/研究了所有我能做到的地方,但我无法让我
折叠
的
工具栏
折叠
。回收器可以自由滚动,但
折叠
的
工具栏
只是停留在那里,除非我滚动
折叠
的
工具栏
本身。我做错了什么,有谁能帮帮我吗?任何帮助都将不胜感激..XML如下所示(只是为了保持代码的整洁,删除了
折叠
工具栏
的相对布局中的部分):<!
and
浏览 2
提问于2016-01-03
得票数 4
3
回答
如何确定ImageView在CollapsingToolbar中是否可见?
android
、
android-imageview
、
android-collapsingtoolbarlayout
我有一个
折叠
的
工具栏
布局,如下所示:
android
:id="@+id"
android
:layout_height="120dp"
android
:layout_gravity="
浏览 5
提问于2016-05-01
得票数 2
回答已采纳
1
回答
如何模糊可
折叠
的
工具栏
图像,像WhatsApp那样展开?
android
、
android-layout
、
imageview
、
android-toolbar
、
android-collapsingtoolbarlayout
我有一个
折叠
工具栏
,其中包含使用Picasso从web加载的图像。当
折叠
工具栏
展开时,我在图像上显示一个标题。但我的问题是,当图像是浅色,我不能看到标题,因为它的白色。我尝试在XML中将tint设置为Imageview,但它适用于整个图像。我查看了“应用程序”上的“
折叠
”
工具栏
,在该应用程序的底部有一个模糊的图像,标题出现在底部。那么,如何实现模糊效果,像什么应用程序
浏览 0
提问于2018-05-26
得票数 0
回答已采纳
点击加载更多
相关
资讯
Android现在支持可折叠智能手机
态势折叠与感知折叠
曝荣耀将发布最大外屏小折叠,古井不波的折叠屏市场迎来“骇浪”
公众号折叠怎么办,公众号昵称被折叠
谷歌I/O大会5月召开,Android 13为折叠屏设备而来
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券