我想在编辑文本下添加小行,如下所示,我该怎么做?
答案 0 :(得分:2)
默认情况下,这是Holo Theme中的Edittext。所以只需申请Holo Theme。
如果您想申请Holo Theme。设置
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17" />
values-v11 文件夹中的和 styles.XML
<resources>
<!--
Base application theme for API 11+. This theme completely replaces
AppBaseTheme from res/values/styles.xml on API 11+ devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
<!-- API 11 theme customizations can go here. -->
</style>
值文件夹中的
和 styles.XML
<resources>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light.NoTitleBar">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
<style name="progressbar_holo" parent="@android:style/Theme.Light">
</style>
并在 AndroidMeanifeast.xml
中android:theme="@style/AppTheme"
在应用程序 TAG。