简体   繁体   English

如何使用 Delphi 为 Android 创建圆角的 TEdit?

[英]How to create a TEdit with rounded corners using Delphi for Android?

I'm using Delphi 10.3 to develop an Android application.我正在使用 Delphi 10.3 开发一个 Android 应用程序。 Is there any way to create a TEdit that has rounded corners?有什么方法可以创建圆角的TEdit吗?

Found a link for How to create EditText with rounded corners?找到了如何创建带圆角的 EditText 的链接? , how can I do the same thing in Delphi? ,我怎样才能在 Delphi 中做同样的事情?

You need TRectanbgle with CornerType Round and your TEdit on TRectangle (TRectangle will be parent) All with same backgroud color.您需要带有 CornerType Round 的 TRectanbgle 和 TRectangle 上的 TEdit(TRectangle 将是父级)都具有相同的背景颜色。 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM