我正在尝试在 Basi4Application 中自定义应用程序的 UI。我使用它才 3 天。所以我需要有关 UI 自定义的帮助。到目前为止,我已经进行了这些更改并且仍在学习。任何人都可以指出任何讨论 Basic4Android 中 UI 自定义的教程或网站。 用户名 Edittext 默认显示为这样想要看起来像这样。请引用下图。 有人请帮助我。提前致谢。
最佳答案
在drawable文件夹中创建xml文件-
rounded_corner.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- res/drawable/rounded_edittext.xml -->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:padding="10dp"
android:shape="rectangle" >
<solid android:color="#FFFFFF" />
<corners
android:bottomLeftRadius="3dp"
android:bottomRightRadius="3dp"
android:topLeftRadius="3dp"
android:topRightRadius="3dp" />
<stroke
android:width="2dp"
android:color="#4D4D4D"
></stroke>
</shape>
& 在你的布局代码中-
<TextView
android:id="@+id/Name"
android:layout_width="fill_parent"
android:layout_height="40dp"
android:background="@drawable/rounded_corner"
/>
关于android - 如何在 Basic4Android 中创建圆角文本框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23006121/