Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
找不到元素“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
对齐顶部两个具有不同字体大小的文本视图
我使用约束布局 我想实现以下目标 app layout constraintBaseline toBaselineOf 属性底部对齐两个文本视图 有什么方法可以使两个顶部对齐吗 由于大小差异 常规的 app layout constrain
Android
androidconstraintlayout
当超过两行时如何纠正 ConstraintLayout TextView 重叠
我遇到约束布局问题 其中一个文本视图中到达第二行的文本不会向下推被限制在其下方的另一个文本视图 直到该行的中间 我用三个文本视图构建了一个简单的布局 第一个文本视图位于左侧并具有设定的宽度 第二个位于它的右侧 位于它与其父级之间 第三个位于
Android
TextView
androidconstraintlayout
Android约束布局水平划分
我正在处理一个 Android 项目 我使用了ConstraintLayout 我想将布局设计为两个保持水平线的块 每个块将获得 50 的宽度 我怎样才能做到这一点ConstraintLayout 有两种方法可以做到这一点 使用链约束 使用
Android
xml
androidconstraintlayout
constraintlayoutchains
约束布局 - 具有最大宽度的两个视图
我想创建一个布局 使用约束布局 如下所示 在不同的语言中 Button1 可能比 Button2 大 我怎样才能做到这一点 我只能在包含两个按钮的约束内使用 LinearLayout 来实现此目的 但我尝试仅使用布局 Thanks Upda
Android
androidlayout
androidconstraintlayout
在wrap_content ConstraintLayout 中,goneMargin 不受尊重?
我有一个ConstraintLayout它的高度在哪里wrap content 我希望它的高度能够根据其子级的高度折叠或扩展 足够简单和常见 对吧 Now I have a layout which looks like this Firs
Android
androidlayout
androidconstraintlayout
如何使用 ConstraintLayout 让第一个 View 缩小以适应剩余空间?
我有以下布局 注意Z位于下方Y 但限制在底部 之间有一个很好的间隙Y and Z 由多余的垂直空间提供 这是我的desired and actual当存在时的行为多余的垂直空间 但是 当显示键盘时 我用完了多余的垂直空间 期望的行为 没有多
Android
androidlayout
androidconstraintlayout
ConstraintLayout 1.1.0 与 1.0.2 不同,是一个 bug 吗?
如果我使用1 0 2 则3个图像的宽度是平均的 并且它们的高度是由我设置的收音机计算的 如果我使用1 1 0 它们的高度是0dp我什么也看不见 除非我设置 android layout height match parent 在根部Cons
Android
androidlayout
androidconstraintlayout
如何使用 ConstraintLayout 使视图“wrap_content 但不大于”?
我连续有 3 个视图 标题 版本和图像视图 用作按钮 标题应该是wrap content但遵守以下规则 版本应该是wrap content 位于标题右侧和图像视图左侧 imageview 具有固定大小 位于父级的右上角 问题是 如果标题太大
Android
androidconstraintlayout
Android - 约束布局 - 如何将视图居中于其他视图的边缘?
我想建立一个这样的布局 在约束布局内 有一个图像视图 其作用类似于横幅 然后有一个与横幅底部边缘居中对齐的卡片 然后还有另一个与卡片顶部边缘居中对齐的图像视图 我面临的问题是 第二个图像视图 绿色的 与卡片对齐时会进入后台而不是留在前景 这
Android
xml
androidlayout
androidconstraintlayout
RecyclerView 在 ConstraintLayout 内时更改其滚动位置
我遇到了一个问题RecyclerView当它是 a 的孩子时ConstraintLayout 本来 RecyclerView位于视图层次结构深处的某个地方Relative Frame and LinearLeayout一切都运行良好 直到我
Android
androidrecyclerview
androidconstraintlayout
约束布局 - 组可见性在动态模块内不起作用
有没有人遇到过问题ConstraintLayout团体能见度 我在用着ConstraintLayout1 1 3 我正在设置组的可见性XML布局和java代码 但它不会改变可见性状态 它总是可见的 这是布局文件
Android
androidlayout
androidconstraintlayout
androidappbundle
ConstraintLayout 问题 - ImageView 16:9 上边距不合适
我想使用 ConstraintLayout 构建以下布局 我使用这个源进行布局
java.lang.ClassCastException:android.support.v7.widget.ActivityChooserView$InnerLayout 无法转换为 android.support.v7.widget.LinearLay
从 LinearLayout 切换到 ConstraintLayout 会引发此错误 java lang ClassCastException android support v7 widget ActivityChooserView In
Android
ClassCastException
androidconstraintlayout
为什么 Android 对 ConstraintLayout 使用单独的 xmlns
我对 Android 中的 ConstraintLayout 有点困惑 我正在学习它 首先我感到困惑的是为什么 android 使用单独的 xml 命名空间呢 xmlns app http schemas android com apk r
Android
androidconstraintlayout
以编程方式截取屏幕截图时,Cardview 会失去其半径
我在卡片视图中有约束布局 卡片视图在屏幕上看起来不错 仅当截取屏幕截图时 它才会被渲染为位图 即失去角点 我添加了位图视图的图片 约束布局与圆角重叠 我需要边到边的圆度 下面是正确显示圆角的模拟器的屏幕截图 这是渲染为位图的视图 下面是我的
Bitmap
androidcanvas
androidconstraintlayout
androidcardview
1
2
3
4
5
»