腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
如何将
ImageView
设置
为
ConstraintLayout
的
右侧
android
、
android-constraintlayout
我有一个图像视图,我想在约束布局中将其
设置
为
水平
右侧
,但layout_constraintEnd_toEndOf约束在
imageView
中似乎不起作用。<androidx.
constraintlayout
.widget.
ConstraintLayout
浏览 51
提问于2020-09-15
得票数 2
1
回答
ConstraintLayout
中
的
可调整大小小部件
android
、
android-constraintlayout
我有一个ListView项,它
的
三个组件水平地对齐: 目前,我已经安排通过RelativeLayout和我
的
TextView‘弹性’。是否可以在
ConstraintLayout
中创建相同
的
布局?基本上,我想问
的
是,我是否可以创建2个固定长度
的
约束,而不是百分比。
浏览 0
提问于2016-06-14
得票数 1
回答已采纳
3
回答
如何将
ConstraintLayout
的
子项定位到屏幕外(以便稍后可以在屏幕上翻译它们)?
android
、
xml
、
android-layout
、
android-constraintlayout
我正在尝试构建一个带有屏幕外元素
的
动态
ConstraintLayout
,稍后我可以将其翻译进来。但是,我无法让元素在屏幕外启动。android:layout_height="match_parent" <
ImageView
> 通过将图像
的
左侧
设置
为
全屏布局
的</e
浏览 0
提问于2020-08-03
得票数 2
2
回答
Constraint Layout -
设置
ImageView
的
宽度
为
整个屏幕尺寸
的
1/4
android
、
android-constraintlayout
如何将
ImageView
的
布局
设置
为
仅使用XML
的
父布局
的
1/4。我还想避免使用嵌套在父
ConstraintLayout
中
的
LinearLayout来做这件事。<androidx.
constraintlayout
.widget.
ConstraintLayout
xmlns:android="http://schemas.android.com/
浏览 45
提问于2020-03-03
得票数 0
回答已采纳
1
回答
以编程方式更改约束布局中
的
高度?
android
、
android-layout
、
android-constraintlayout
我有一个简单
的
布局:一个固定高度
的
TextView,其中三个
ImageView
对象锚定在视图
的
底部。 如何以编程方式更改每个ImageViews
的
高度,使其在一定范围内(低于TextView
的
10dp、16dp )变化?具体地说,我
的
活动得到一个百分比列表(介于0和1之间),表示每个“条”应该占据多少垂直空间。
浏览 1
提问于2017-10-05
得票数 18
回答已采纳
1
回答
在android studio中查询图片大小
android
、
android-studio
、
android-layout
、
imageview
、
pixel
这是一张640x480
的
球形图片,如你所见,我指定了layout_width
为
849px,layout_height
为
680px。我拍摄了一个背景颜色
为
blue.As layout_width
的
图片,图片
的
宽度和大小远大于640px(图片
的
宽度和大小),那么为什么图片
的
左侧和
右侧
没有被蓝色背景包围,图片
的
顶部和底部被蓝色背景包围。> <androidx.
constraintlayout
.
浏览 26
提问于2020-06-15
得票数 0
1
回答
安卓工作室
的
设计编辑器不适用于
constraintLayout
android
、
android-constraintlayout
我跟踪了,发现我
的
安卓工作室出了问题。工作空间应该是这样
的
但我
的
IDE看起来..。 com.android.support.constraint:constraint-layout:1.0.0
浏览 2
提问于2016-08-18
得票数 0
2
回答
ConstraintLayout
问题(最大宽度、尺寸比和链式)
android
、
android-layout
、
android-constraintlayout
我对
ConstraintLayout
和一个特定
的
观点有一个问题。以下是 我漏掉了什么吗?
浏览 1
提问于2018-10-25
得票数 2
回答已采纳
2
回答
imageview
未
设置
全屏
android
我将图像视图
设置
为
全屏,但它不起作用:在左侧和
右侧
之间有一些空间。
如何将
imageview
设置
为
全屏?<?xml version="1.0" encoding="utf-8"?android" android:layout_height="fi
浏览 2
提问于2013-03-09
得票数 1
1
回答
ConstraintLayout
按形状
设置
圆角资源文件不起作用
android
、
android-layout
、
kotlin
、
android-recyclerview
、
android-constraintlayout
我遇到了一个奇怪
的
问题,当我通过shape资源文件
设置
适配器项角
的
布局时,它没有工作。<?xml version="1.0" encoding="utf-8"?variable type="BriefComposition" /> <android
浏览 2
提问于2020-05-19
得票数 5
回答已采纳
1
回答
链
的
spread_inside在
constraintLayout
中不起作用
android
、
android-constraintlayout
我有一个图像视图,我想将它
设置
为
约束布局中
的
右侧
水平,但是layout_constraintEnd_toEndOf约束在
imageView
中似乎不起作用。<androidx.
constraintlayout
.widget.
ConstraintLayout
androidlayout_constraintTop_toTopOf="parent&quo
浏览 10
提问于2020-09-16
得票数 1
1
回答
设置
回收视图图像
的
高度相同
java
、
android
、
android-recyclerview
、
imageview
我搜索了大量
的
堆叠溢出,如何
设置
高度
的
所有图像
的
回收视图相同。stackoverflow有许多类似的问题,但是它们
的
答案太复杂了,新手无法理解。这就是我想要达到
的
目标。我知道在第一图
的
网格布局跨度是2和3在第二图片,但这不是一个问题。我想要所有图像
的
高度相同。 <?> <androidx.
constraint
浏览 1
提问于2022-01-09
得票数 -1
1
回答
Android
ConstraintLayout
在java代码中
设置
ImageView
对象
的
百分比
java
、
android
、
android-imageview
、
android-constraintlayout
我希望将图像
设置
为
相对于父容器
的
ImageView
大小,作为百分比。但是画面的大小并没有改变。
ConstraintLayout
constraintLayout
= new
ConstraintLayout
(this);
ImageView
contactU
浏览 4
提问于2020-07-08
得票数 1
1
回答
向
ConstraintLayout
- Android添加约束
kotlin
、
android-constraintlayout
我一直试图在带有ID
为
ConstraintLayout
的
card_details中使用约束来将其定位到屏幕上,但这些约束不起作用,而且IDE也不推荐它们作为可用属性。 app:layout_constraintTop_toTopOf="parent"> <
ImageView
ignore="ImageContrastChe
浏览 7
提问于2022-07-13
得票数 0
回答已采纳
1
回答
安卓以编程方式添加
ImageView
和
ConstraintLayout
android
、
android-constraintlayout
我想用编程
的
方式使用
ImageView
将几个RecyclerView插入到RecyclerView中。若要使用水平偏差以等距方式插入图像,则计算每幅图像
的
值如下: new
ConstraintLayout
.LayoutParams(/*
ConstraintLayout
.LayoutParams.WRAP_CO
浏览 1
提问于2019-12-16
得票数 3
回答已采纳
1
回答
边距
设置
为
Match_Parent。在模拟器中工作,但在真实设备上显示空间
android
、
android-layout
、
layout
、
imageview
、
margin
我有一个以编程方式创建要添加到LinearLayout中
的
ImageView
的
方法: private static
ImageView
createBaseImageView(Context context(layoutParams); } 我希望图像匹配父母
的
宽度,并在其高度匹配内容。这在Android Studio提供
的
模拟器上工作得很好。然而,当我在真正
的
设备上安装应用程序时,不知何故,我在图像<e
浏览 15
提问于2019-01-22
得票数 0
回答已采纳
2
回答
如何将
视图放置到约束布局中
的
另一个视图
的
特定偏移量
android
、
xml
、
android-constraintlayout
一个(小)图像必须位于第二个图像
的
中轴到底部轴(较小),但应该是与Y轴略有偏移。我试图在约束布局中这样做。我知道将小图像
的
顶部和底部约束
设置
为
大图像
的
底部。如何在约束布局中实现这一点?编辑1
如何将
上述链接中
的
美丽和野兽照片降至Y轴<androidx.
constraintlayout
.widget.
Constr
浏览 4
提问于2019-09-23
得票数 3
回答已采纳
1
回答
如何在单个
Imageview
中限制触摸区域?
java
、
android
有没有办法根据图像视图
的
高度和宽度来限制图像视图
的
触摸?
浏览 19
提问于2019-03-23
得票数 1
3
回答
在图像视图中未显示以编程方式创建
的
绘图
android
、
kotlin
、
android-drawable
我试图在图像视图中创建一个可绘制
的
矩形。(context)问题是,如果我将
ImageView
布局参数
设置
为
WRAP_CONTENT,则不会显示任何内容,但如果将params
设置
为
image.layoutParams =
ConstraintLa
浏览 1
提问于2018-08-19
得票数 1
回答已采纳
1
回答
如何以编程方式使
ImageView
的
宽度
为
match_parent (非XML)
android
、
android-layout
因此,我正在学习如何在Android Studio中以编程方式创建布局 我希望
ImageView
的
宽度
为
match_parent (
ConstraintLayout
容器是父容器),我希望它
的
高度
为
wrap_content
ConstraintLayout
container = new
ConstraintLayout
(context); container.setId(0);
ImageView
img = //
浏览 12
提问于2021-01-19
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
为什么ConstraintLayout代替其他布局?
如何将Excel表格中的折线图设置为实线虚线混排显示?
iOS 14:如何将谷歌浏览器设置为iPhone上的默认浏览器
Android开发必备偷懒神器之比例控件、点击效果、Selector、shape
如何将cad图转成图片?我推荐这两个方法
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券