腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
有没有
一种
方法
或
内置
方法
可以
从
android
material
TextInputLayout
(
om.google.android
.
material
.textfield.
TextInputLayout
)
中
获取
文本
android
、
material-design
我尝试过使用getText(),但在使用该
文本
字段时不可用,下面是
文本
字段: <com.google.
android
.
material
.textfield.
TextInputLayout
android
:id="@+id/firstnametxt"
android
:layout_h
浏览 9
提问于2020-10-08
得票数 0
4
回答
如何
从
Kotlin的
TextInputLayout
中
获取
文本
?
android
、
kotlin
、
textinputlayout
我有一个id login_mobile_number的
文本
输入布局,我导入了这个模块以停止使用findViewById
方法
:每当我试图
从
TextInputLayout
中
获取
文本
时它返回对象
浏览 1
提问于2019-01-06
得票数 1
回答已采纳
7
回答
在EditText下面显示帮助
文本
以及提示
android
、
android-layout
、
android-edittext
、
androiddesignsupport
、
android-textinputlayout
我试着用这些台词来做些什么:我
可以
使用
android
:hint="Email Address"显示提示,但不能显示辅助
文本
-这将是您的电子邮件用户名。<
android
.support.design.widget.
TextInputLayout
android
:layout_height="wrap_c
浏览 3
提问于2015-11-24
得票数 22
回答已采纳
2
回答
TextInputLayout
框颜色
android
、
android-layout
、
material-design
、
android-textinputlayout
、
material-components-android
使用下面的xml元素,我
可以
正确地将
TextInputLayout
框涂成白色,但那只是在单击它之后。初始颜色仍为默认颜色。<com.google.
android
.
material
.textfield.
TextInputLayout
浏览 75
提问于2019-05-24
得票数 1
4
回答
如何
从
TextInputLayout
中
删除带有OutlinedBox样式的浮动标签?
android
、
material-components
、
material-components-android
当
TextInputLayout
处于聚焦模式时,是否有
方法
移除浮动标签(提示)?<com.google.
android
.
material
.textfield.
TextInputLayout
android
:layout_width="match_parent&quo
浏览 1
提问于2019-01-30
得票数 4
2
回答
OutlinedBox,
TextInputLayout
和重心?
android
、
android-support-library
、
android-textinputlayout
、
material-components
、
material-components-android
如何用
TextInputLayout
实现居中新的OutlinedBox样式 <
android
.support.design.widget.
TextInputLayout
android
:id=“@+id/
textInputLayout
2 2”style="@style/Widget.MaterialComponents.
TextInputLayout
.OutlinedBox“
android
android
浏览 1
提问于2018-11-21
得票数 17
回答已采纳
10
回答
在
Android
中
,
TextInputLayout
总是有一个默认背景。
android
、
android-layout
、
android-textinputlayout
、
android-textinputedittext
我有这样的
TextInputLayout
和TextInputEditText </com.google.
android
.
material
.textfield.
TextInputLayout
><
浏览 2
提问于2019-05-15
得票数 30
回答已采纳
11
回答
用
TextInputLayout
.OutlinedBox造型设计材料纺纱机
android
、
material-design
、
android-textinputlayout
、
material-components-android
、
material-components
我目前正在使用材料设计
TextInputLayout
OutlinedBox,如下所示:
android
:layout_width="text"/>
浏览 1
提问于2018-11-07
得票数 33
回答已采纳
1
回答
TextInputLayout
浮动时更改提示颜色
android
、
android-textinputlayout
、
android-textinputedittext
我希望当提示在TextInputEditText
中
时是
一种
颜色,当它浮动时是另
一种
颜色。在其他帖子
中
,答案总是如何在视图聚焦时更改提示。这不是我想要的,我
可以
做到。如果“编辑
文本
”不为空,我想更改提示颜色。我使用的是
material
design
textInputLayout
和textInputEditText。尝试了不同的样式和选择器,但仍然做不到。我试图扩展
TextInputLayout
,但是我不知道如何将它绑定到EditTex
浏览 24
提问于2020-02-21
得票数 0
3
回答
如何使TextInputEditText
中
的
文本
在
TextInputLayout
enabled = false之后变成灰色?
android
、
xml
、
kotlin
当我禁用我的
TextInputLayout
时它变得灰色,所以视觉上你明白它是不可用的,但是文字仍然是黑色的,即使它也被阻塞了。我希望我的
文本
是灰色的,作为禁用的容器。你能帮我这么做吗?
浏览 1
提问于2021-11-08
得票数 2
回答已采纳
9
回答
如何设置
TextInputLayout
错误消息颜色?
android
、
android-textinputlayout
如何更改
可以
设置为
TextInputLayout
中
文本
字段下面的错误消息的颜色(通过setError(...) - )?将app:errorTextAppearance键添加到我的
TextInputLayout
中
浏览 9
提问于2015-11-14
得票数 98
回答已采纳
2
回答
TextInputEditText -可点击但不可编辑
android
、
layout
、
material-ui
、
material-components-android
我有一个布局,我想要显示一堆编辑
文本
和一个日期选择器。因为我希望所有字段都有相同的设计,所以我想我也需要为日期选择器使用一个编辑
文本
,但使其不可编辑但可单击。下面是我的编辑
文本
的xml代码,它将用于显示日期选择器:
android
:id="@_24dp"> <com.google.
android</
浏览 42
提问于2021-03-06
得票数 2
2
回答
Android
:如何
从
inputfield
获取
字符串值?
java
、
android
我对
Android
非常陌生,而且我已经花了几个小时试图从一个材料inputField组件
中
获取
值字符串。除了
从
inputField提取字符串值外,一切都正常工作。如果我只评论一下,一切都会正常的。包括语音
方法
(我尝试过使用静态字符串,它
可以
工作)。com.google.
andr
浏览 4
提问于2020-10-23
得票数 0
回答已采纳
6
回答
Android
-
TextInputLayout
没有包装TextInputEditText的暗示
android
、
android-textinputlayout
我在TextTnputLayout
中
嵌套了一个简单的TextInputEditText。
android
:layout_width="wrap_content" <
android<
浏览 0
提问于2017-10-04
得票数 4
1
回答
如果用户
从
AutoCompleteTextView
中
删除,该如何正确处理?
android
、
kotlin
所以我的问题是,当用户选择一项时,在onItemClickListener
中
,我将该项保存到变量
中
,如果用户
从
autoCompleteTextView
中
删除了该值,变量仍然保留先前选择的项。因此,由于这个扫描,我想从我的变量
中
清除selectedItem,但我不知道如何正确执行此操作? <com
浏览 19
提问于2021-05-12
得票数 0
回答已采纳
2
回答
这个键盘旋转器叫什么(?)我如何用Spinner替换它呢?
android
、
spinner
、
android-spinner
我一直在我的应用程序中使用微调器,微调器
中
的项目数量比我想象的要多得多,而且由于项目的数量,微调器滚动条已经相当小了。我想如果我使用这个键盘旋转器会看起来更干净,就像我在上面链接的图像
中
的那个,键盘变成了一个选择。但我不知道它叫什么,也不知道如何用它替换我使用的旋转器。 对不起,我的英语不好。
浏览 2
提问于2019-12-23
得票数 0
14
回答
从
TextInputEditText
中
删除下划线
android
、
android-textinputlayout
、
android-textinputedittext
我有一个
android
屏幕,接收用户的电子邮件。下面是代码片段,我想删除
文本
下面的下划线。<com.google.
android
.
material
.textfield.
TextInputLayout
android
:layout_height="wrap_content"
android
:layout_margi
浏览 0
提问于2019-07-16
得票数 38
回答已采纳
3
回答
如何减少
文本
提示和
文本
行之间的空白?
android
、
xml
、
material-design
、
android-textinputlayout
、
material-components-android
我真的不喜欢提示和
文本
行之间的空格。我试过把地心引力降到最低点,但没有运气。<com.google.
android
.
material
.textfield.TextInputEditText
android
:layout_height="wrap_content"
android
浏览 0
提问于2019-08-31
得票数 2
回答已采纳
16
回答
更改
TextInputLayout
轮廓颜色
android
、
material-design
、
android-styles
、
android-textinputlayout
我正在尝试定制一个具有材质风格的
TextInputLayout
。我设法将焦点状态设置为我想要的颜色:使用 style="@style/LoginTextInputLayoutStyle" <em
浏览 14
提问于2018-06-12
得票数 98
回答已采纳
8
回答
以编程方式设置
TextInputLayout
提示
文本
颜色和浮动标签颜色
android
、
android-textinputlayout
我使用
TextInputLayout
,如果输入字段是强制性的,我希望以编程方式设置提示
文本
颜色和浮动标签颜色。在迁移到
TextInputLayout
之前,我使用以下
方法
以编程方式设置提示
文本
颜色有人能指导我如何以编程方式设置
TextInputLayout
的提示
文本
颜色和浮动标签颜色。在附带的屏幕截图中,我希望提示
文本
地址1在没有聚焦时是红色的,而on焦点浮动标签地址1应该是
浏览 20
提问于2016-02-28
得票数 19
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Android 13来了,它真的平庸又鸡肋吗?
谷歌的“Material”主题将改变您的Android体验
Flutter 1.17重磅发布:多个新增特性及增强,2020年首个稳定版
Android Weekly Notes Issue#321
如何利用BLoC在Flutter和AngularDart中共享代码?
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券