1

我想在编辑文本下添加小行,如下所示,我该怎么做?

在此处输入图像描述

4

1 回答 1

2

这是 Holo 主题中 Edittext 的默认外观。所以只需应用 Holo 主题。

如果你想应用 Holo 主题。放

<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>

values文件夹中的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"

应用程序标签中。

于 2013-01-17T11:23:16.663 回答