Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
ConstraintLayout 相对距离百分比 %
我正在与ConstraintLayout我想设置一个百分比从位于屏幕 52 的按钮 2 到 Textview Sample 的边距顶部 3 当然是相对于屏幕的高度而言的 该位置应该与其他 UI 组件相关 仅从屏幕顶部 或底部 参考指南 可以
Android
androidconstraintlayout
子约束布局的约束布局不水平扩展
我正在尝试构建一个矩形视图 跨越屏幕的宽度 该视图水平分成三个块 并且我使用约束布局来这样做 左右块具有指定的宽度 但中心块应扩展以适应剩余空间 因为我要求最左边的块具有与父块不同的背景颜色 所以我将其子块分组到另一个约束布局中 我给出了下
Android
androidconstraintlayout
与其他布局相比,约束布局是否昂贵?
当我意识到 ConstraintLayout 有 更好的布局拖放 通过更好的命名 top toBottomOf 更好地查看相对设置 更好的布局结构与比率和百分比指南 还有更多不能在这里说明或者我只是不知道 我一直想不断地使用它 因为它太舒服
Android
androidconstraintlayout
当它的父级是 ConstraintLayout 时设计 CardView 吗?
我在编辑包含Relativelayout的Cardview内的RelativeLayout时搞砸了 ConstraintLayout会将相对布局的wrap content更改为0并添加工具 layout editor absoluteX 1
Android
androidlayout
androidcardview
androidconstraintlayout
layout_constrainedWidth 无法正常工作
我的 ConstraintLayout 中有 EditText 和 TextView TextView显示EditText的内容 输入时 我需要 EditText 展开直到屏幕中间 而 TextView 跟随它并填充后半部分 我将指导方针设
Android
androidconstraintlayout
ConstraintLayout:无法缩放图像以适应 RecyclerView 中的比例
我有一个带有 StaggeredGridLayoutManager 的回收器视图 在我有自定义项目 视图中 每个项目都定义为 ConstraintLayout 其中有一个图像应该具有恒定的长宽比 但图像仍然能够缩放以适应每个跨度的宽度 然后
Android
androidrecyclerview
AspectRatio
androidconstraintlayout
将 match_parent 转换为“0dp”
当我使用android layout height match parent or android layout width match parent 作为约束布局中子项的高度 宽度并构建 Gradle 文件 它会自动更改为android
Android
androidlayout
AndroidStudio
androidconstraintlayout
动作编辑器在 Android studio 4.0.1 中无法工作
I am trying to set up motion layout in android studio 4 0 1 and everything works fine until I edit in motion editor It r
androidx Recycler View 匹配约束 (0dp) 与换行内容行为
我这里有简单的回收器视图 我想要的是 当列表很短时 将按钮粘贴到回收器视图下方 当列表很长时 将按钮粘在屏幕底部 但回收器视图正确换行并且能够滚动到底部
Android
androidrecyclerview
androidconstraintlayout
以编程方式设置 imageView 的宽高比
我在显示没有 centerCrop 的横向图像时遇到问题 我试过PercentFramelayout 并以编程方式设置纵横比 像这样 laParams percentLayoutInfo aspectRatio img width toFl
Android
AspectRatio
androidconstraintlayout
ConstraintLayout 源代码位于哪里?
哪里可以找到android的源代码ConstraintLayout 我在支持框架存储库甚至谷歌搜索中都找不到它 它的源代码在这里 https android googlesource com platform frameworks opt
Android
androidconstraintlayout
LinearLayout:防止最后一个孩子被之前的大文本视图推出或挤压
我有一个LinearLayout里面有两个孩子 第一个是TextView对于动态内容 第二个是一个按钮 我的问题是按钮被推出其父级或被挤压到不再可见的程度 我想要TextView认识到其父母与第二个孩子一起没有更多空间 并开始新的一行 而不
Android
xml
androidlayout
androidlinearlayout
androidconstraintlayout
有没有办法以编程方式使用 ConstraintLayout 的 Flow 帮助器小部件?
我想用约束布局 https developer android com reference androidx constraintlayout widget ConstraintLayout s Flow https developer a
Android
androidconstraintlayout
constraintlayoutflow
Android ConstraintLayout:如何在另一个视图下面添加动态视图
我正在尝试在运行时在约束布局中将 TextView 添加到另一个下面 但我最终总是只有一个文本视图 其余的都隐藏在它后面 我尝试了几种方法 包括链接视图 但似乎没有任何效果 private void method int position
Android
androidlayout
androidconstraintlayout
如何以编程方式设置 ConstraintLayout 的 XML 属性“layout_constrainedWidth”?
ConstraintLayout中 如何转换xml属性 app layout constrainedWidth true false in code 如果你想设置constrainedWidth Height以编程方式 那么你必须采取Con
Android
androidconstraintlayout
找不到元素“android.support.constraint.ConstraintLayout”的声明
我创建了一个名为的 xml 文件activity main sw50dp 但是当我尝试验证它时 它给了我错误 错误 4 42 cvc elt 1 a 找不到元素 android support constraint ConstraintLa
Android
androidlayout
androidconstraintlayout
将视图放置在 ConstraintLayout 之外
我想将视图放置在ConstraintLayout用滑动动画来制作它们的动画 我尝试过设置像这样的约束constraintBottom toTopOf parent 但是View留在容器内 请注意 我希望通过使用内置动画的约束来实现此目的 而
如何在 PercentRelativeLayout 中使用layout_aspectRatio?
我尝试在视图上实现 16 9 的纵横比PercentRelativeLayout https developer android com reference android support percent PercentRelativeLa
Android
androidlayout
androidconstraintlayout
androidpercentrelativelayout
如何使用 ConstraintLayout 将多个视图居中在一起?
背景 谷歌宣布了一个名为 约束布局 http tools android com tech docs layout editor 这应该是最终的布局 它可以取代所有布局 同时保持平坦 没有嵌套布局 并具有更好的性能 问题 事实是 除了 Go
Android
androidlayout
androidconstraintlayout
ConstraintLayout 内的 ImageView 不起作用
我在正确显示 ImageView 时遇到问题 我想在 ConstraintLayout 中显示 ImageView 在预览中 它看起来完全符合我的需要 但是当我在设备上启动它时 它看起来完全不同 此布局位于回收视图内 这段代码有什么问题
Android
xml
Layout
androidconstraintlayout
1
2
3
4
5
»