我怎样才能获得原生的Android编辑框 [英] How can I get the native Android Editbox
本文介绍了我怎样才能获得原生的Android编辑框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在XML使用这种code创建了一个编辑框:
I have created an Editbox in XML using this code:
<EditText
android:id="@+id/txtEmail"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="50dp"
android:inputType="textEmailAddress" >
</EditText>
文本框呈现这样的:
The textbox renders like this:
我怎样才能得到原生的Android 的EditText
与聚焦时,橙色的边框,白色背景等等?
How can I get the native android EditText
with the orange borders when focused, white background etc. ?
我尝试添加
android:background="@android:color/white"
但仅更改背景为白色。
but that only changes the background to white.
推荐答案
您所看到的风格是为蜂窝(3.0)Android版本,具体而言,新的全息黑暗的主题本土。最后一次使用橙色边框和白色背景看在2.3。*,至今已被甩在后面。
The style you are seeing is "native" for the Honeycomb (3.0) Android version, specifically, the new Holo-dark theme. The orange-borders-and-white-background look was last used in 2.3.* and has since been left behind.
这篇关于我怎样才能获得原生的Android编辑框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文