如何解决如何在EditText中更改提示以标记标签
我想得到这样的东西:
在一开始,我想在我的hint
中显示一个EditText
,然后当用户单击它时,我希望该hint
成为标签。我怎么能做到?
解决方法
在您的[HttpGet("{id}")]
public async Task<ActionResult<Game>> GetGame(long id) {
var game = await _context.Games.FindAsync(id);
if (game == null) {
return NotFound();
}
return game;
}
中将其添加到build.gradle (Module: app)
:
dependencies
在您的布局中添加此:
implementation 'com.google.android.material:material:1.3.0-alpha02'
结果:
更多信息here
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。