Ale*_*eAP 6 android view android-edittext
正如标题所说,我看过EditTexts,它们只是纯白色,没有光滑的边角或橙色的android边框,当你突出显示它等.
喜欢它在这个应用程序中看起来:http://s1.appbrain.com/screen?id = -2631427781674403509& i = 1
Vit*_*nko 14
您需要创建一个这样的自定义背景9补丁图像一个,并把它/res/drawable的目录.这是9补丁图像的教程.然后,您需要将图像应用为EditTextusing android:background属性的背景.
这是一个示例布局xml:
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/white_bg"
android:text="Test"
android:layout_marginBottom="5dip" />
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/white_bg"
android:text="Currently focused" />
Run Code Online (Sandbox Code Playgroud)
这是结果:

| 归档时间: |
|
| 查看次数: |
10040 次 |
| 最近记录: |